Class: Steep::Signature::Errors::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/steep/signature/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#locationObject (readonly)

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_sObject



7
8
9
# File 'lib/steep/signature/errors.rb', line 7

def loc_to_s
  Ruby::Signature::Location.to_string location
end

#pathObject



17
18
19
# File 'lib/steep/signature/errors.rb', line 17

def path
  location.buffer.name
end

#to_sObject



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