module Furirubi

Constants

VERSION

Public Class Methods

formator() click to toggle source
# File lib/furirubi.rb, line 14
def self.formator
  @formator ||= Formators::RubyHtml.new
end
formator=(format) click to toggle source
# File lib/furirubi.rb, line 18
def self.formator=(format)
  @formator = format
end
parse(search_term) click to toggle source
# File lib/furirubi.rb, line 22
def self.parse(search_term)
  words = translator.translate(search_term)
  words[search_term] = '' if words.size.zero?

  formator.format(words)
end
translator() click to toggle source
# File lib/furirubi.rb, line 6
def self.translator
  @translator ||= Furirubi::Translators::JishoWebTranslator.new
end
translator=(trans) click to toggle source
# File lib/furirubi.rb, line 10
def self.translator=(trans)
  @translator = trans
end