Class: SchemaPlus::Core::SchemaDump::Table::Index
- Inherits:
-
Struct
- Object
- Struct
- SchemaPlus::Core::SchemaDump::Table::Index
- Defined in:
- lib/schema_plus/core/schema_dump.rb
Instance Attribute Summary collapse
-
#columns ⇒ Object
Returns the value of attribute columns.
-
#name ⇒ Object
Returns the value of attribute name.
-
#options ⇒ Object
Returns the value of attribute options.
Instance Method Summary collapse
Instance Attribute Details
#columns ⇒ Object
Returns the value of attribute columns
108 109 110 |
# File 'lib/schema_plus/core/schema_dump.rb', line 108 def columns @columns end |
#name ⇒ Object
Returns the value of attribute name
108 109 110 |
# File 'lib/schema_plus/core/schema_dump.rb', line 108 def name @name end |
#options ⇒ Object
Returns the value of attribute options
108 109 110 |
# File 'lib/schema_plus/core/schema_dump.rb', line 108 def @options end |
Instance Method Details
#assemble(stream) ⇒ Object
110 111 112 |
# File 'lib/schema_plus/core/schema_dump.rb', line 110 def assemble(stream) stream.write columns.inspect + ", " + {name: name}.merge().to_s.sub(/^{(.*)}$/, '\1') end |