Crab::Rule
Inherits Crab::Renderable / Reference / Object
An Object made to create Rules and possibly headers
Constructors
Create a new Rule object It's parameters are: width: The width of the rule, is possible use Crab.get_cols for this text: The text to be display with the rule, it can have multiple positions crab_codes: A string with the crab codes to apply to the full Rule, default is "", example "#[red]" text_pos: A string to set the text position, it can be right, left or center, defaults to center.
Instance methods
crab_codes
Sourcerender
Render the Rule to a String to be Parsed by an Crab::Ansi_Parser, if possible do not call directly
text
Sourcetext_pos
Sourcewidth
Source