Class: ActiveRecord::Lint::MissingTable

Inherits:
Object
  • Object
show all
Includes:
Comparable
Defined in:
lib/active_record/lint/reporter.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#tableObject (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_sObject



22
23
24
# File 'lib/active_record/lint/reporter.rb', line 22

def to_s
  "Expected the table '#{table}' to exist."
end