lib/dub/function.rb in dub-0.6.0 vs lib/dub/function.rb in dub-0.6.1
- old
+ new
@@ -62,9 +62,13 @@
else
name
end
end
+ def id_name
+ @parent ? "#{@parent.id_name}.#{name}" : name
+ end
+
def source
loc = (@xml/'location').first.attributes
"#{loc['file'].split('/')[-3..-1].join('/')}:#{loc['line']}"
end