Method: Xf::Scope#set
- Defined in:
- lib/xf/scope.rb
#set(value = nil, &fn) ⇒ Proc[Hash] -
Sets a value in a Hash
35 36 37 |
# File 'lib/xf/scope.rb', line 35 def set(value = nil, &fn) Proc.new { |hash| set_value(hash, value, &fn) } end |