mirror of
https://github.com/zhigang1992/rmq.git
synced 2026-01-12 17:52:17 +08:00
Tweaks
This commit is contained in:
4
Rakefile
4
Rakefile
@@ -7,8 +7,8 @@ require "bundler/setup"
|
||||
Bundler.require
|
||||
|
||||
Motion::Project::App.setup do |app|
|
||||
#app.sdk_version = '8.0'
|
||||
#app.deployment_target = '7.0'
|
||||
#app.sdk_version = '8.1'
|
||||
#app.deployment_target = '7.1'
|
||||
|
||||
app.name = 'rmq'
|
||||
app.identifier = 'com.infinitered.rmq'
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
module RubyMotionQuery
|
||||
module RubyMotionQuery
|
||||
class RMQ
|
||||
# I'm purposly not including Enumerable,
|
||||
# I'm purposly not including Enumerable,
|
||||
# please use to_a if you want one
|
||||
|
||||
|
||||
@@ -67,10 +67,12 @@ module RubyMotionQuery
|
||||
|
||||
# @return [RMQ]
|
||||
def first
|
||||
# TODO, check if it fails with nil
|
||||
RMQ.create_with_array_and_selectors([selected.first], @selectors, @context)
|
||||
end
|
||||
# @return [RMQ]
|
||||
def last
|
||||
# TODO, check if it fails with nil
|
||||
RMQ.create_with_array_and_selectors([selected.last], @selectors, @context)
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user