Class: ActiveRecord::Lint::MissingTable
- Inherits:
-
Object
- Object
- ActiveRecord::Lint::MissingTable
- Includes:
- Comparable
- Defined in:
- lib/active_record/lint/reporter.rb
Instance Attribute Summary collapse
-
#table ⇒ Object
readonly
Returns the value of attribute table.
Instance Method Summary collapse
- #<=>(other) ⇒ Object
-
#initialize(table) ⇒ MissingTable
constructor
A new instance of MissingTable.
- #to_s ⇒ Object
Constructor Details
#initialize(table) ⇒ MissingTable
Returns a new instance of MissingTable.
14 15 16 |
# File 'lib/active_record/lint/reporter.rb', line 14 def initialize(table) @table=table end |
Instance Attribute Details
#table ⇒ Object (readonly)
Returns the value of attribute table.
12 13 14 |
# File 'lib/active_record/lint/reporter.rb', line 12 def table @table end |
Instance Method Details
#<=>(other) ⇒ Object
18 19 20 |
# File 'lib/active_record/lint/reporter.rb', line 18 def <=> (other) table <=> other.table end |
#to_s ⇒ Object
22 23 24 |
# File 'lib/active_record/lint/reporter.rb', line 22 def to_s "Expected the table '#{table}' to exist." end |