class Rubyrubi::Client

Public Class Methods

new(app_id) click to toggle source
# File lib/rubyrubi/client.rb, line 3
def initialize(app_id)
  @app_id = app_id
end

Public Instance Methods

furu(text) click to toggle source
# File lib/rubyrubi/client.rb, line 7
def furu(text)
  result = API.request(@app_id, text)
  parser = Parser::Base.new(result)
  parser.parse().join('')
end
tag(text, ruby) click to toggle source
# File lib/rubyrubi/client.rb, line 13
def tag(text, ruby)
  Parser.ruby_tag(text, ruby)
end