Class: Pinspec::SkippedStatement
- Inherits:
-
Data
- Object
- Data
- Pinspec::SkippedStatement
- Defined in:
- lib/pinspec/types.rb
Instance Attribute Summary collapse
-
#column ⇒ Object
readonly
Returns the value of attribute column.
-
#file ⇒ Object
readonly
Returns the value of attribute file.
-
#kind ⇒ Object
readonly
Returns the value of attribute kind.
-
#line ⇒ Object
readonly
Returns the value of attribute line.
-
#references ⇒ Object
readonly
Returns the value of attribute references.
-
#relevant ⇒ Object
readonly
Returns the value of attribute relevant.
-
#table ⇒ Object
readonly
Returns the value of attribute table.
Instance Method Summary collapse
Instance Attribute Details
#column ⇒ Object (readonly)
Returns the value of attribute column
452 453 454 |
# File 'lib/pinspec/types.rb', line 452 def column @column end |
#file ⇒ Object (readonly)
Returns the value of attribute file
452 453 454 |
# File 'lib/pinspec/types.rb', line 452 def file @file end |
#kind ⇒ Object (readonly)
Returns the value of attribute kind
452 453 454 |
# File 'lib/pinspec/types.rb', line 452 def kind @kind end |
#line ⇒ Object (readonly)
Returns the value of attribute line
452 453 454 |
# File 'lib/pinspec/types.rb', line 452 def line @line end |
#references ⇒ Object (readonly)
Returns the value of attribute references
452 453 454 |
# File 'lib/pinspec/types.rb', line 452 def references @references end |
#relevant ⇒ Object (readonly)
Returns the value of attribute relevant
452 453 454 |
# File 'lib/pinspec/types.rb', line 452 def relevant @relevant end |
#table ⇒ Object (readonly)
Returns the value of attribute table
452 453 454 |
# File 'lib/pinspec/types.rb', line 452 def table @table end |
Instance Method Details
#relevant? ⇒ Boolean
453 454 455 |
# File 'lib/pinspec/types.rb', line 453 def relevant? relevant == true end |
#tables_touched ⇒ Object
457 458 459 |
# File 'lib/pinspec/types.rb', line 457 def tables_touched ([table] + Array(references)).compact.uniq end |
#to_s ⇒ Object
461 462 463 464 465 |
# File 'lib/pinspec/types.rb', line 461 def to_s subject = column ? "#{table}.#{column}" : table via = Array(references).empty? ? "" : " on #{Array(references).join(', ')}" "#{kind}#{subject ? " (#{subject})" : ""}#{via} at #{file}:#{line}" end |