module Proc::ValueObjectPatch

Public Instance Methods

value(*args) click to toggle source

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

@example

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
# File lib/proc/value.rb, line 43
def value(*args)
  self
end