Method: Ambition::API#first

Defined in:
lib/ambition/api.rb

#first(count = 1) ⇒ Object

See Array#first



46
47
48
49
# File 'lib/ambition/api.rb', line 46

def first(count = 1)
  sliced = slice(0, count)
  count == 1 ? Array(sliced.kick).first : sliced
end