lib/bindata/lazy.rb
# Evaluates +val+ in the context of this data object.  Evaluation
# recurses until it yields a value that is not a symbol or lambda.
# +overrides+ is an optional +obj.parameters+ like hash.
Evaluates +val+ in the context of this data object.  Evaluation
recurses until it yields a value that is not a symbol or lambda.
+overrides+ is an optional +obj.parameters+ like hash.
Evaluates + val + in the context of this data object . Evaluation recurses until it yields a value that is not a symbol or lambda . + overrides + is an optional + obj . parameters + like hash .
def lazy_eval(val, overrides = nil)
      result = val
      @overrides = overrides if overrides
      if val.is_a? Symbol
        result = __send__(val)
      elsif val.respond_to? :arity
        result = instance_eval(&val)
      end
      @overrides = @@empty_hash
      result
    end
def lazy_eval ( val , overrides = nil ) result = val @overrides = overrides if overrides if val . is_a? Symbol result = __send__ ( val ) elsif val . respond_to? :arity result = instance_eval ( & val ) end @overrides = @@empty_hash result end
Evaluates +val+ in the context of this data object.
Evaluates + val + in the context of this data object .
# treat :foo as lambda { foo }
val
<not_specific>
overrides
<not_specific>