Class: SQL::TableCreator::SqlExpr

Inherits:
Object
  • Object
show all
Defined in:
lib/dm-migrations/sql/table_creator.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(sql) ⇒ SqlExpr

Returns a new instance of SqlExpr.



44
45
46
# File 'lib/dm-migrations/sql/table_creator.rb', line 44

def initialize(sql)
  @sql = sql
end

Instance Attribute Details

#sqlObject

Returns the value of attribute sql.



43
44
45
# File 'lib/dm-migrations/sql/table_creator.rb', line 43

def sql
  @sql
end

Instance Method Details

#to_sObject



48
49
50
# File 'lib/dm-migrations/sql/table_creator.rb', line 48

def to_s
  @sql.to_s
end