class RelatedWord
Constants
- VERSION
Attributes
service[R]
Public Class Methods
config() { |Configure| ... }
click to toggle source
# File lib/related_word/configure.rb, line 2 def self.config yield(Configure) if block_given? end
new(service = nil)
click to toggle source
# File lib/related_word.rb, line 7 def initialize(service = nil) @service = service end
Public Instance Methods
find(word)
click to toggle source
# File lib/related_word.rb, line 11 def find(word) service_class.new(word).find end
Private Instance Methods
service_class()
click to toggle source
# File lib/related_word.rb, line 17 def service_class @service_class ||= Service.instance_class(service) end