Class: OJAD::Verbs

Inherits:
Object
  • Object
show all
Defined in:
lib/ojad/verbs.rb

Instance Method Summary collapse

Constructor Details

#initialize(html) ⇒ Verbs

Returns a new instance of Verbs.



9
10
11
# File 'lib/ojad/verbs.rb', line 9

def initialize(html)
  @html = html
end

Instance Method Details

#to_aObject



13
14
15
16
17
# File 'lib/ojad/verbs.rb', line 13

def to_a
  verbs.map do |verb_document|
    Verb.new(verb_document)
  end
end