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



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