Class: Super::Form::SchemaTypes::Generic
- Inherits:
-
Object
- Object
- Super::Form::SchemaTypes::Generic
- Defined in:
- lib/super/form/schema_types.rb
Instance Method Summary collapse
- #[](key) ⇒ Object
-
#initialize(partial_path:, extras:) ⇒ Generic
constructor
A new instance of Generic.
- #to_partial_path ⇒ Object
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_path ⇒ Object
32 33 34 |
# File 'lib/super/form/schema_types.rb', line 32 def to_partial_path @partial_path end |