Class: MilkTea::PrettyPrinter::BaseFormatter

Inherits:
Object
  • Object
show all
Defined in:
lib/milk_tea/core/pretty_printer/base_formatter.rb

Direct Known Subclasses

ASTFormatter, IRFormatter

Constant Summary collapse

INDENT =
"    "

Instance Method Summary collapse

Constructor Details

#initializeBaseFormatter

Returns a new instance of BaseFormatter.



8
9
10
11
# File 'lib/milk_tea/core/pretty_printer/base_formatter.rb', line 8

def initialize
  @lines = []
  @indent = 0
end