Class: StaticSourceLoc::MethodSource
- Defined in:
- lib/static_source_loc.rb
Instance Attribute Summary
Attributes inherited from Source
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
#qualname ⇒ Object
116 117 118 119 120 121 122 |
# File 'lib/static_source_loc.rb', line 116 def qualname unless parent and parent.singleton? "#{parent ? parent.qualname : 'Object'}##{name}" else "#{parent.parent.qualname if parent.parent}.#{name}" end end |