Class: TokyoMetro::Rake::Rails::Deploy::Heroku::Csv::Command::MetaClass::Table

Inherits:
Object
  • Object
show all
Defined in:
lib/tokyo_metro/rake/rails/deploy/heroku/csv/command/meta_class/table.rb

Instance Method Summary collapse

Constructor Details

#initialize(table) ⇒ Table

Returns a new instance of Table.



3
4
5
# File 'lib/tokyo_metro/rake/rails/deploy/heroku/csv/command/meta_class/table.rb', line 3

def initialize( table )
  @table = table
end

Instance Method Details

#begin_with_sharp?Boolean

Returns:

  • (Boolean)


11
12
13
# File 'lib/tokyo_metro/rake/rails/deploy/heroku/csv/command/meta_class/table.rb', line 11

def begin_with_sharp?
  /\A\#/ === @table
end

#schema_migrations?Boolean

Returns:

  • (Boolean)


7
8
9
# File 'lib/tokyo_metro/rake/rails/deploy/heroku/csv/command/meta_class/table.rb', line 7

def schema_migrations?
  @table == "schema_migrations"
end

#to_sObject



15
16
17
# File 'lib/tokyo_metro/rake/rails/deploy/heroku/csv/command/meta_class/table.rb', line 15

def to_s
  @table.gsub( /\A\#\s+/ , "" )
end