Class: TokyoMetro::Rake::Rails::Deploy::Heroku::Csv::Command::MetaClass::Table
- Inherits:
-
Object
- Object
- TokyoMetro::Rake::Rails::Deploy::Heroku::Csv::Command::MetaClass::Table
- Defined in:
- lib/tokyo_metro/rake/rails/deploy/heroku/csv/command/meta_class/table.rb
Instance Method Summary collapse
- #begin_with_sharp? ⇒ Boolean
-
#initialize(table) ⇒ Table
constructor
A new instance of Table.
- #schema_migrations? ⇒ Boolean
- #to_s ⇒ Object
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
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
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_s ⇒ Object
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 |