Class: StaticSourceLoc::MethodSource

Inherits:
Source
  • Object
show all
Defined in:
lib/static_source_loc.rb

Instance Attribute Summary

Attributes inherited from Source

#name, #parent, #source_locs

Instance Method Summary collapse

Methods inherited from Source

#initialize, #inspect, #new_loc, #source_loc, #to_s

Constructor Details

This class inherits a constructor from StaticSourceLoc::Source

Instance Method Details

#qualnameObject



114
115
116
117
118
119
120
# File 'lib/static_source_loc.rb', line 114

def qualname
  unless parent and parent.singleton?
    "#{parent ? parent.qualname : 'Object'}##{name}"
  else
    "#{parent.parent.qualname if parent.parent}.#{name}"
  end
end