Class: Emfrp::Pattern

Inherits:
Syntax
  • Object
show all
Defined in:
lib/emfrp/syntax.rb

Instance Method Summary collapse

Methods inherited from Syntax

#[], #deep_copy, #initialize, #traverse_all_syntax

Constructor Details

This class inherits a constructor from Emfrp::Syntax

Instance Method Details

#find_refsObject

-> [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