class Mlc::Abstract::Block
Public Class Methods
new()
click to toggle source
# File lib/mlc/abstract/block.rb, line 4 def initialize @children = [] end
Public Instance Methods
<<(child)
click to toggle source
# File lib/mlc/abstract/block.rb, line 8 def <<(child) @children << child end
to_lua(indent, options, state)
click to toggle source
# File lib/mlc/abstract/block.rb, line 12 def to_lua(indent, options, state) i = ' ' * indent i + @children.map {|el| el.to_lua(indent + 1, options, state)}.join("\n#{i}") end