Class: SimpleRepresenter::Computed

Inherits:
Field
  • Object
show all
Defined in:
lib/simple_representer/computed.rb

Instance Attribute Summary

Attributes inherited from Field

#field, #options

Instance Method Summary collapse

Methods inherited from Field

#call, #initialize

Constructor Details

This class inherits a constructor from SimpleRepresenter::Field

Instance Method Details

#process(representer) ⇒ Object



7
8
9
# File 'lib/simple_representer/computed.rb', line 7

def process(representer)
  representer.public_send(field)
end