Class: Decode::Language::Ruby::Reference

Inherits:
Decode::Language::Reference show all
Defined in:
lib/decode/language/ruby/reference.rb

Overview

An Ruby-specific reference which can be resolved to zero or more definitions.

Instance Attribute Summary

Attributes inherited from Decode::Language::Reference

#identifier, #language

Instance Method Summary collapse

Methods inherited from Decode::Language::Reference

#absolute?, #best, #initialize, #inspect, #lexical_path, #path, #relative?, #to_s

Constructor Details

This class inherits a constructor from Decode::Language::Reference

Instance Method Details

#split(text) ⇒ Object



28
29
30
# File 'lib/decode/language/ruby/reference.rb', line 28

def split(text)
	text.scan(/(::|\.|#|:)?([^:.#]+)/)
end