Module: Proc::ValueInstancePatch

Included in:
Proc
Defined in:
lib/proc/value.rb

Instance Method Summary collapse

Instance Method Details

#value(*args) ⇒ Object

Evaluate block. Arguments are given to ‘Proc#call`.

Examples:

config_option = proc { "#{lazy_var}/path/to/file.rb" }
config_option.value.to_s\


27
28
29
# File 'lib/proc/value.rb', line 27

def value(*args)
  send :call, *args
end