Class: RSpec::Support::Source::Location Private
Do not use. This class is for internal use only.
Relationships & Source Files | |
Super Chains via Extension / Inclusion / Inheritance | |
Class Chain:
self,
Struct
|
|
Instance Chain:
self,
Comparable,
Struct
|
|
Inherits: |
Struct
|
Defined in: | rspec-support/lib/rspec/support/source/location.rb |
Overview
Represents a source location of node or token.
Class Method Summary
- .location?(array) ⇒ Boolean Internal use only
Instance Attribute Summary
Instance Method Summary
- #<=>(other) Internal use only
Class Method Details
.location?(array) ⇒ Boolean
# File 'rspec-support/lib/rspec/support/source/location.rb', line 11
def self.location?(array) array.is_a?(Array) && array.size == 2 && array.all? { |e| e.is_a?(Integer) } end
Instance Attribute Details
#column (rw)
Represents a source location of node or token.
#line (rw)
Represents a source location of node or token.