Class: RbbCode::TreeMaker
- Inherits:
-
Object
- Object
- RbbCode::TreeMaker
- Includes:
- CharCodes
- Defined in:
- lib/rbbcode/tree_maker.rb
Constant Summary
Constants included from CharCodes
CharCodes::CR_CODE, CharCodes::LF_CODE, CharCodes::LOWER_A_CODE, CharCodes::LOWER_Z_CODE, CharCodes::L_BRACK_CODE, CharCodes::R_BRACK_CODE, CharCodes::SLASH_CODE, CharCodes::UPPER_A_CODE, CharCodes::UPPER_Z_CODE
Instance Method Summary collapse
-
#initialize(schema) ⇒ TreeMaker
constructor
A new instance of TreeMaker.
- #make_tree(str) ⇒ Object
Constructor Details
#initialize(schema) ⇒ TreeMaker
Returns a new instance of TreeMaker.
98 99 100 |
# File 'lib/rbbcode/tree_maker.rb', line 98 def initialize(schema) @schema = schema end |
Instance Method Details
#make_tree(str) ⇒ Object
102 103 104 |
# File 'lib/rbbcode/tree_maker.rb', line 102 def make_tree(str) delete_empty_paragraphs(parse_str(str)) end |