Sha256: fe942088a10f2bff2f93c3ef3b4e9a68dd28ed45ccb891a4245a4e33925f3397

Contents?: true

Size: 243 Bytes

Versions: 9

Compression:

Stored size: 243 Bytes

Contents

module XcodeProject
	class Formatter
		def initialize
			@counter = 0
		end

		def inc
			@counter += 1
		end

		def dec
			@counter -= 1
		end

		def t1
			"\n" + "\t" * @counter
		end

		def t2
			"\n" + "\t" * (@counter + 1)
		end
	end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
xcodeproject-0.3.10 lib/xcodeproject/formatter.rb
xcodeproject-0.3.9 lib/xcodeproject/formatter.rb
xcodeproject-0.3.8 lib/xcodeproject/formatter.rb
xcodeproject-0.3.6 lib/xcodeproject/formatter.rb
xcodeproject-0.3.5 lib/xcodeproject/formatter.rb
xcodeproject-0.3.1 lib/xcodeproject/formatter.rb
xcodeproject-0.3.0 lib/xcodeproject/formatter.rb
xcodeproject-0.2.4 lib/xcodeproject/formatter.rb
xcodeproject-0.2.3 lib/xcodeproject/formatter.rb