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.



39
40
41
# File 'lib/dm-migrations/sql/table_creator.rb', line 39

def initialize(sql)
  @sql = sql
end

Instance Attribute Details

#sqlObject

Returns the value of attribute sql.



38
39
40
# File 'lib/dm-migrations/sql/table_creator.rb', line 38

def sql
  @sql
end

Instance Method Details

#to_sObject



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

def to_s
  @sql.to_s
end