Module: Torque::PostgreSQL::Adapter::TableDefinition
- Includes:
- ColumnMethods
- Defined in:
- lib/torque/postgresql/adapter/schema_definitions.rb
Instance Attribute Summary collapse
-
#inherits ⇒ Object
readonly
Returns the value of attribute inherits.
Instance Method Summary collapse
Methods included from ColumnMethods
Instance Attribute Details
#inherits ⇒ Object (readonly)
Returns the value of attribute inherits.
35 36 37 |
# File 'lib/torque/postgresql/adapter/schema_definitions.rb', line 35 def inherits @inherits end |
Instance Method Details
#initialize(*args, **options) ⇒ Object
37 38 39 40 41 42 |
# File 'lib/torque/postgresql/adapter/schema_definitions.rb', line 37 def initialize(*args, **) super @inherits = Array.wrap(.delete(:inherits)).flatten.compact \ if .key?(:inherits) end |