class Orchparty::CommonBuilder
Public Class Methods
new(node)
click to toggle source
# File lib/orchparty/dsl_parser.rb, line 181 def initialize(node) @node = node end
Public Instance Methods
_build()
click to toggle source
# File lib/orchparty/dsl_parser.rb, line 197 def _build @node end
method_missing(name, *values, &block)
click to toggle source
# File lib/orchparty/dsl_parser.rb, line 189 def method_missing(name, *values, &block) if block_given? assign_or_merge(@node, name, HashBuilder.build(block)) else assign_or_merge(@node, name, values.first) end end
mix(name)
click to toggle source
# File lib/orchparty/dsl_parser.rb, line 185 def mix(name) @node._mix << name end
variables(&block)
click to toggle source
# File lib/orchparty/dsl_parser.rb, line 201 def variables(&block) @node._variables ||= {} @node._variables = @node._variables.merge(VariableBuilder.build(block)) self end