Class: KiCad::AST::Effects

Inherits:
Node
  • Object
show all
Defined in:
lib/kicad/ast.rb

Overview

Text Effects

Instance Attribute Summary

Attributes inherited from Node

#children, #values

Instance Method Summary collapse

Methods inherited from Node

child_types, #children_of_type, #emit_compact, #emit_compacting, #initialize, to_class_name, to_symbol, value_types

Constructor Details

This class inherits a constructor from KiCad::AST::Node

Instance Method Details

#emit(depth = 0) ⇒ Object



166
167
168
169
170
171
172
# File 'lib/kicad/ast.rb', line 166

def emit depth = 0
  if @children.size <= 1
    emit_compacting depth
  else
    super
  end
end