Class: Super::Form::SchemaTypes::Generic

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

Instance Method Summary collapse

Constructor Details

#initialize(partial_path:, extras:) ⇒ Generic

Returns a new instance of Generic.



27
28
29
30
# File 'lib/super/form/schema_types.rb', line 27

def initialize(partial_path:, extras:)
  @partial_path = partial_path
  @extras = extras
end

Instance Method Details

#[](key) ⇒ Object



36
37
38
# File 'lib/super/form/schema_types.rb', line 36

def [](key)
  @extras[key]
end

#to_partial_pathObject



32
33
34
# File 'lib/super/form/schema_types.rb', line 32

def to_partial_path
  @partial_path
end