class EacRubyUtils::Compact

def attribute_value(attr_path)

Returns:
  • (Object) -

Parameters:
  • attr_path (String, Symbol) -- A path separated by +ATTRIBUTE_SEPARATOR+.
def attribute_value(attr_path)
  attr_path.to_s.split(ATTRIBUTE_SEPARATOR).inject(object) do |a, e|
    a.send(e)
  end
end