Class: ActiveSupport::OrderedHash

Inherits:
Object
  • Object
show all
Defined in:
lib/hobo_support/hash.rb

Instance Method Summary collapse

Instance Method Details

#firstObject



120
121
122
# File 'lib/hobo_support/hash.rb', line 120

def first
  empty? ? nil : [keys.first, values.first]
end