Class: Rabbit::Parser::Wiki::RabbitOutput::InlinePlugin::Private

Inherits:
Object
  • Object
show all
Includes:
Element
Defined in:
lib/rabbit/parser/wiki/output.rb

Instance Method Summary collapse

Constructor Details

#initialize(output) ⇒ Private

Returns a new instance of Private.



436
437
438
# File 'lib/rabbit/parser/wiki/output.rb', line 436

def initialize(output)
  @output = output
end

Instance Method Details

#pack(text, *rest) ⇒ Object



440
441
442
443
444
445
446
447
# File 'lib/rabbit/parser/wiki/output.rb', line 440

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