Module: Torque::PostgreSQL::Adapter::TableDefinition

Defined in:
lib/torque/postgresql/adapter/schema_definitions.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#inheritsObject (readonly)

Returns the value of attribute inherits.



7
8
9
# File 'lib/torque/postgresql/adapter/schema_definitions.rb', line 7

def inherits
  @inherits
end

Instance Method Details

#initialize(*args, **options) ⇒ Object



9
10
11
12
13
14
# File 'lib/torque/postgresql/adapter/schema_definitions.rb', line 9

def initialize(*args, **options)
  super

  @inherits = Array.wrap(options.delete(:inherits)).flatten.compact \
    if options.key?(:inherits)
end