Included Modules

Class/Module Index [+]

Quicksearch

Rabbit::Format::SpanTextFormatter

Constants

PANGO2CSS

Attributes

value[R]

Public Class Methods

new(value) click to toggle source
# File lib/rabbit/formatter.rb, line 45
def initialize(value)
  @value = value
end

Public Instance Methods

format(text) click to toggle source
# File lib/rabbit/formatter.rb, line 57
def format(text)
  tagged_text(text, "span", normalize_attribute(name, @value))
end
html_format(text) click to toggle source
# File lib/rabbit/formatter.rb, line 61
def html_format(text)
  css_name, css_value = pango2css(name, @value)
  tagged_text(text, "span", {'style' => "#{css_name}: #{css_value};"})
end
html_formatter?() click to toggle source
# File lib/rabbit/formatter.rb, line 53
def html_formatter?
  true
end
text_formatter?() click to toggle source
# File lib/rabbit/formatter.rb, line 49
def text_formatter?
  true
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.