module Indent
Constants
- INDENT
Public Instance Methods
dedent()
click to toggle source
# File lib/crokus/indent.rb, line 11 def dedent @indentation-=INDENT end
indent(str)
click to toggle source
# File lib/crokus/indent.rb, line 5 def indent str @indentation||=-INDENT @indentation+=INDENT say(str) end
say(str)
click to toggle source
# File lib/crokus/indent.rb, line 15 def say str puts " "*@indentation+str if @verbose end