Method: Hash#bound_value

Defined in:
lib/active_form/core_extensions.rb

#bound_value(*args) ⇒ Object



83
84
85
86
# File 'lib/active_form/core_extensions.rb', line 83

def bound_value(*args)
  self[args[0]] = args[1] if args.length == 2
  self[args[0]]
end