module Marso::TextHelper
The is module assume that the entity that will mix it uses a, integer variable called '@indent_steps' that is used to indent the text
Public Instance Methods
colorized_text()
click to toggle source
# File lib/marso/helpers/texthelper.rb, line 12 def colorized_text "Overide me".red end
indented_colorized_text()
click to toggle source
# File lib/marso/helpers/texthelper.rb, line 8 def indented_colorized_text indent_text(colorized_text, self.tree_position) end
Private Instance Methods
indent_text(text, indentation)
click to toggle source
# File lib/marso/helpers/texthelper.rb, line 18 def indent_text(text, indentation) indent = Array.new(indentation, "\t").join indent.concat(text.gsub("\n", "\n#{indent}")) end