class Rabbit::Parser::Wiki::RabbitOutput::InlinePlugin

Public Class Methods

new(output) click to toggle source
# File lib/rabbit/parser/wiki/output.rb, line 383
def initialize(output)
  @private = Private.new(output)
end

Public Instance Methods

br() click to toggle source
# File lib/rabbit/parser/wiki/output.rb, line 419
def br
  Text.new("\n")
end
code_point(code_point, *rest) click to toggle source
# File lib/rabbit/parser/wiki/output.rb, line 399
def code_point(code_point, *rest)
  @private.pack(Text.new([code_point].pack("U")), *rest)
end
e(entity, *rest)
Alias for: entity
entity(entity, *rest) click to toggle source
# File lib/rabbit/parser/wiki/output.rb, line 392
def entity(entity, *rest)
  return nil unless TABLE.include?(entity)

  @private.pack(Text.new(TABLE[entity]), *rest)
end
Also aliased as: e
image(source, props={}) click to toggle source
# File lib/rabbit/parser/wiki/output.rb, line 387
def image(source, props={})
  raise ParseError,
        _("inline {{image(...)}} isn't supported.")
end
lang(lang, text, *rest) click to toggle source
Calls superclass method Rabbit::Parser::Ext::Inline#lang
# File lib/rabbit/parser/wiki/output.rb, line 415
def lang(lang, text, *rest)
  super(lang, @private.pack(text, *rest))
end
note(text, *rest) click to toggle source
Calls superclass method Rabbit::Parser::Ext::Inline#note
# File lib/rabbit/parser/wiki/output.rb, line 411
def note(text, *rest)
  super(@private.pack(text, *rest))
end
sub(text, *rest) click to toggle source
Calls superclass method Rabbit::Parser::Ext::Inline#sub
# File lib/rabbit/parser/wiki/output.rb, line 403
def sub(text, *rest)
  super(@private.pack(text, *rest))
end
sup(text, *rest) click to toggle source
Calls superclass method Rabbit::Parser::Ext::Inline#sup
# File lib/rabbit/parser/wiki/output.rb, line 407
def sup(text, *rest)
  super(@private.pack(text, *rest))
end
tag(name, text=nil, *rest) click to toggle source
# File lib/rabbit/parser/wiki/output.rb, line 427
def tag(name, text=nil, *rest)
  if text
    CustomTag.new(name, @private.pack(text, *rest))
  else
    CustomTag.new(name)
  end
end
wait() click to toggle source
# File lib/rabbit/parser/wiki/output.rb, line 423
def wait
  WaitTag.new
end