Class: Steep::Signature::Errors::Base
- Inherits:
-
Object
- Object
- Steep::Signature::Errors::Base
show all
- Defined in:
- lib/steep/signature/errors.rb
Instance Attribute Summary collapse
Instance Method Summary
collapse
Instance Attribute Details
#location ⇒ Object
Returns the value of attribute location.
5
6
7
|
# File 'lib/steep/signature/errors.rb', line 5
def location
@location
end
|
Instance Method Details
#loc_to_s ⇒ Object
7
8
9
|
# File 'lib/steep/signature/errors.rb', line 7
def loc_to_s
Ruby::Signature::Location.to_string location
end
|
#path ⇒ Object
17
18
19
|
# File 'lib/steep/signature/errors.rb', line 17
def path
location.buffer.name
end
|
#to_s ⇒ Object
11
12
13
14
15
|
# File 'lib/steep/signature/errors.rb', line 11
def to_s
StringIO.new.tap do |io|
puts io
end.string
end
|