Method: Coypond::Parser#extract_ref
- Defined in:
- lib/coypond/parser.rb
#extract_ref(type, *tail) ⇒ Object
12 13 14 15 16 17 18 19 20 21 |
# File 'lib/coypond/parser.rb', line 12 def extract_ref(type, *tail) case type when :const_path_ref var_ref = extract_ref(*(tail.first)).first name, location = extract_const_and_location(tail[1]) return [[var_ref, name].join("::"), location] else return extract_const_and_location(tail.first) end end |