Class: Hash

Inherits:
Object show all
Defined in:
lib/ruby/jruby_hack.rb

Overview

lib/ruby/hash.rb

Instance Method Summary collapse

Instance Method Details

#at(x) ⇒ Object



281
282
283
# File 'lib/ruby/jruby_hack.rb', line 281

def at(x)
  self[x]
end

#defined_at?(x) ⇒ Boolean

Returns:

  • (Boolean)


277
278
279
# File 'lib/ruby/jruby_hack.rb', line 277

def defined_at?(x)
  include?(x)
end