Module: SnipReference::SnipCall
- Defined in:
- lib/vanilla/snip_reference_parser.rb
Instance Method Summary collapse
Instance Method Details
#arguments ⇒ Object
9 10 11 12 13 14 15 16 17 |
# File 'lib/vanilla/snip_reference_parser.rb', line 9 def arguments if elements[2] && elements[2].elements r = elements[2].elements[1].to_arguments r.flatten! if r.respond_to?(:flatten!) r else [] end end |
#attribute ⇒ Object
6 7 8 |
# File 'lib/vanilla/snip_reference_parser.rb', line 6 def attribute elements[1].attribute end |
#snip ⇒ Object
3 4 5 |
# File 'lib/vanilla/snip_reference_parser.rb', line 3 def snip elements[1].name end |