Class: OJAD::Verb
- Inherits:
-
Object
- Object
- OJAD::Verb
- Defined in:
- lib/ojad/verb.rb
Instance Method Summary collapse
-
#initialize(document) ⇒ Verb
constructor
A new instance of Verb.
-
#to_human ⇒ Object
TODO: parse the verb group.
Constructor Details
#initialize(document) ⇒ Verb
Returns a new instance of Verb.
5 6 7 |
# File 'lib/ojad/verb.rb', line 5 def initialize(document) @document = document end |
Instance Method Details
#to_human ⇒ Object
TODO: parse the verb group
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
# File 'lib/ojad/verb.rb', line 10 def to_human "Verb: #{group}\n" \ "Dictionary: #{dictionary}\n" \ "Polite: #{polite}\n" \ "Te: #{te}\n" \ "Ta: #{ta}\n" \ "Negative: #{negative}\n" \ "Past negative: #{past_negative}\n" \ "Ba: #{ba}\n" \ "Causative: #{causative}\n" \ "Passive: #{passive}\n" \ "Imperative: #{imperative}\n" \ "Potential: #{potential}\n" \ "Volitional: #{volitional}\n" end |