Class: Pinspec::SkippedStatement

Inherits:
Data
  • Object
show all
Defined in:
lib/pinspec/types.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#columnObject (readonly)

Returns the value of attribute column

Returns:

  • (Object)

    the current value of column



412
413
414
# File 'lib/pinspec/types.rb', line 412

def column
  @column
end

#fileObject (readonly)

Returns the value of attribute file

Returns:

  • (Object)

    the current value of file



412
413
414
# File 'lib/pinspec/types.rb', line 412

def file
  @file
end

#kindObject (readonly)

Returns the value of attribute kind

Returns:

  • (Object)

    the current value of kind



412
413
414
# File 'lib/pinspec/types.rb', line 412

def kind
  @kind
end

#lineObject (readonly)

Returns the value of attribute line

Returns:

  • (Object)

    the current value of line



412
413
414
# File 'lib/pinspec/types.rb', line 412

def line
  @line
end

#referencesObject (readonly)

Returns the value of attribute references

Returns:

  • (Object)

    the current value of references



412
413
414
# File 'lib/pinspec/types.rb', line 412

def references
  @references
end

#relevantObject (readonly)

Returns the value of attribute relevant

Returns:

  • (Object)

    the current value of relevant



412
413
414
# File 'lib/pinspec/types.rb', line 412

def relevant
  @relevant
end

#tableObject (readonly)

Returns the value of attribute table

Returns:

  • (Object)

    the current value of table



412
413
414
# File 'lib/pinspec/types.rb', line 412

def table
  @table
end

Instance Method Details

#to_sObject



415
416
417
418
419
# File 'lib/pinspec/types.rb', line 415

def to_s
  subject = column ? "#{table}.#{column}" : table
  via = Array(references).empty? ? "" : " on #{Array(references).join(', ')}"
  "#{kind}#{subject ? " (#{subject})" : ""}#{via} at #{file}:#{line}"
end