class Lyracyst::Onelook
Fetches definitions, phrases, similar words, and resource links from Onelook
.
Public Instance Methods
get_word(search, result)
click to toggle source
@param search [String] The term to search for. @param search [String] The XML response.
# File lib/lyracyst/onelook.rb, line 7 def get_word(search, result) prefix = 'http://www.onelook.com/?xml=1&w=' url = "#{prefix}#{search}" request = HTTPI::Request.new(url) getter = HTTPI.get(request) result = getter.body end