# File lib/ruote/parser/ruby_dsl.rb, line 118 def self.create_branch (name, attributes, &block) name = name[1..-1] while name[0, 1] == '_' h = attributes.inject({}) { |h1, a| a.is_a?(Hash) ? h1.merge!(a) : h1[a] = nil h1 }.inject({}) { |h1, (k, v)| h1[k.to_s] = v.is_a?(Symbol) ? v.to_s : v h1 } c = BranchContext.new(name, h) c.instance_eval(&block) if block c.to_a end
Generated with the Darkfish Rdoc Generator 2.