lib/pudl/entity.rb
# Dereference a value
#
# * If a symbol is passed, attempt to retrieve it from the context
# * If a callable is passed, call it and return the result
# * Otherwise return untouched
#
Dereference a value
If a symbol is passed, attempt to retrieve it from the context
If a callable is passed, call it and return the result
Otherwise return untouched
Dereference a value If a symbol is passed attempt to retrieve it from the context If a callable is passed call it and return the result Otherwise return untouched
def value_of v, *args
        if v.is_a? Symbol
          context.get v
        elsif v.respond_to? :call
          context.instance_exec *args, &v
        else
          v
        end
      end
def value_of v , * args if v . is_a? Symbol context . get v elsif v . respond_to? :call context . instance_exec * args , & v else v end end
Dereference a value
 If a symbol is passed, attempt to retrieve it from the context
 If a callable is passed, call it and return the result
 Otherwise return untouched
Dereference a value If a symbol is passed attempt to retrieve it from the context If a callable is passed call it and return the result Otherwise return untouched
v
<not_specific>
args
<not_specific>