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.
409 410 411 |
# File 'lib/rabbit/parser/wiki/output.rb', line 409 def initialize(output) @output = output end |
Instance Method Details
#pack(text, *rest) ⇒ Object
413 414 415 416 417 418 419 420 |
# File 'lib/rabbit/parser/wiki/output.rb', line 413 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 |