Class: Emfrp::Pattern
Instance Method Summary collapse
-
#find_refs ⇒ Object
-> [SSymbol].
Methods inherited from Syntax
#[], #deep_copy, #initialize, #traverse_all_syntax
Constructor Details
This class inherits a constructor from Emfrp::Syntax
Instance Method Details
#find_refs ⇒ Object
-> [SSymbol]
137 138 139 140 141 142 143 144 145 146 |
# File 'lib/emfrp/syntax.rb', line 137 def find_refs # -> [SSymbol] res = [] if self[:ref] res << self[:ref] end if self.has_key?(:args) res = res + self[:args].map{|a| a.find_refs}.flatten end return res end |