This commit is contained in:
Todd Werth
2014-10-02 22:32:12 -07:00
parent 2cc3c699d4
commit 517abe43a3
2 changed files with 6 additions and 4 deletions

View File

@@ -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'

View File

@@ -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