Class: Super::Display::SchemaTypes::Dynamic
- Inherits:
-
Object
- Object
- Super::Display::SchemaTypes::Dynamic
- Defined in:
- lib/super/display/schema_types.rb
Instance Method Summary collapse
-
#initialize(transform_block) ⇒ Dynamic
constructor
A new instance of Dynamic.
- #present(field) ⇒ Object
Constructor Details
#initialize(transform_block) ⇒ Dynamic
27 28 29 |
# File 'lib/super/display/schema_types.rb', line 27 def initialize(transform_block) @transform_block = transform_block end |
Instance Method Details
#present(field) ⇒ Object
31 32 33 |
# File 'lib/super/display/schema_types.rb', line 31 def present(field) @transform_block.call(field) end |