Class: Super::Display::SchemaTypes::Dynamic

Inherits:
Object
  • Object
show all
Defined in:
lib/super/display/schema_types.rb

Instance Method Summary collapse

Constructor Details

#initialize(transform_block) ⇒ Dynamic

Returns a new instance of 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