Class: Furigana::Formatter::Text

Inherits:
Base
  • Object
show all
Defined in:
lib/furigana/formatter/text.rb

Instance Method Summary collapse

Methods inherited from Base

#initialize, #render

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/text.rb', line 4

def replacement(surface_form, reading)
  "%s【%s】" % [surface_form, reading]
end