class HighLine::Statement
This class handles proper formatting based on a HighLine context, applying wrapping, pagination, indentation and color rendering when necessary. It’s used by {HighLine#render_statement} @see HighLine#render_statement
Attributes
The HighLine context @return [HighLine]
The source object to be stringfied and formatted.
The stringfied source object @return [String]
Public Class Methods
Source
# File lib/highline/statement.rb, line 48 def self.const_missing(constant) HighLine.const_get(constant) end
Source
Public Instance Methods
Source
# File lib/highline/statement.rb, line 38 def statement @statement ||= format_statement end
Returns the formated statement. Applies wrapping, pagination, indentation and color rendering based on HighLine instance settings. @return [String] formated statement