Class: Qrpm::ContainerNode
Instance Attribute Summary
Attributes inherited from Node
Instance Method Summary collapse
-
#exprs ⇒ Object
Return list of Node objects in the container.
- #signature ⇒ Object
-
#values ⇒ Object
Can’t be defined as an alias because #exprs is redefined in derived classes, otherwise #values would refer to the derived version of #exprs.
- #variables ⇒ Object
Methods inherited from Node
#class_name, #dot, #dump, #initialize, #inspect, #interpolate, #interpolated?, #traverse
Constructor Details
This class inherits a constructor from Qrpm::Node
Instance Method Details
#exprs ⇒ Object
Return list of Node objects in the container. Hash keys are not included
161 |
# File 'lib/qrpm/node.rb', line 161 def exprs = abstract_method |
#signature ⇒ Object
171 |
# File 'lib/qrpm/node.rb', line 171 def signature = "#{self.class_name}(#{name},#{exprs.map { |v| v.signature }.join(",")})" |
#values ⇒ Object
Can’t be defined as an alias because #exprs is redefined in derived classes, otherwise #values would refer to the derived version of #exprs
169 |
# File 'lib/qrpm/node.rb', line 169 def values() exprs end |
#variables ⇒ Object
165 |
# File 'lib/qrpm/node.rb', line 165 def variables() @variables ||= exprs.map(&:variables).flatten.uniq end |