Class: Furigana::Formatter::HTML
- Defined in:
- lib/furigana/formatter/html.rb
Instance Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from Furigana::Formatter::Base
Instance Method Details
#replacement(surface_form, reading) ⇒ Object
4 5 6 |
# File 'lib/furigana/formatter/html.rb', line 4 def replacement(surface_form, reading) "<ruby><rb>%s</rb><rp>【</rp><rt>%s</rt><rp>】</rp></ruby>" % [surface_form, reading] end |