class XcodeProject::Formatter
Public Class Methods
new()
click to toggle source
# File lib/xcodeproject/formatter.rb, line 27 def initialize @counter = 0 end
Public Instance Methods
dec()
click to toggle source
# File lib/xcodeproject/formatter.rb, line 35 def dec @counter -= 1 end
inc()
click to toggle source
# File lib/xcodeproject/formatter.rb, line 31 def inc @counter += 1 end
t1()
click to toggle source
# File lib/xcodeproject/formatter.rb, line 39 def t1 "\n" + "\t" * @counter end
t2()
click to toggle source
# File lib/xcodeproject/formatter.rb, line 43 def t2 "\n" + "\t" * (@counter + 1) end