Class: Squirm::Migrator::Column::Type

Inherits:
Object
  • Object
show all
Extended by:
Ambry::Model
Defined in:
lib/squirm/migrator/column.rb

Instance Method Summary collapse

Instance Method Details

#=~(string) ⇒ Object



22
23
24
# File 'lib/squirm/migrator/column.rb', line 22

def =~(string)
  patterns.any? {|pattern| string.match pattern}
end

#templatesObject



12
13
14
# File 'lib/squirm/migrator/column.rb', line 12

def templates
  @attributes[:templates] or []
end