Module: Proc::ValueObjectPatch

Defined in:
lib/proc/value.rb

Instance Method Summary collapse

Instance Method Details

#value(*args) ⇒ Object

Return self. Allows object to be transparently switched with blocks.

Examples:

config_option = "path/to/file.rb"
config_option.value.to_s

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


43
44
45
# File 'lib/proc/value.rb', line 43

def value(*args)
  self
end