Class: Rabbit::Parser::Wiki::RabbitOutput::InlinePlugin::Private
- Inherits:
-
Object
- Object
- Rabbit::Parser::Wiki::RabbitOutput::InlinePlugin::Private
- Includes:
- Element
- Defined in:
- lib/rabbit/parser/wiki/output.rb
Instance Method Summary collapse
-
#initialize(output) ⇒ Private
constructor
A new instance of Private.
- #pack(text, *rest) ⇒ Object
Constructor Details
#initialize(output) ⇒ Private
Returns a new instance of Private.
437 438 439 |
# File 'lib/rabbit/parser/wiki/output.rb', line 437 def initialize(output) @output = output end |
Instance Method Details
#pack(text, *rest) ⇒ Object
441 442 443 444 445 446 447 448 |
# File 'lib/rabbit/parser/wiki/output.rb', line 441 def pack(text, *rest) text = @output.text(text) unless text.is_a?(Element::Base) if rest.empty? text else TextContainer.new([text, *rest]) end end |