Class: Zenlish::WClasses::IrregularVerb

Inherits:
LexicalVerb show all
Defined in:
lib/zenlish/wclasses/irregular_verb.rb

Instance Attribute Summary collapse

Attributes inherited from WordClass

#paradigms

Instance Method Summary collapse

Methods inherited from Verb

#invariable?

Methods inherited from WordClass

#invariable?

Methods included from Feature::FeatureStructDefBearer

#[], #boolean, #enumeration, #feature_def, #feature_def_dsl, #identifier, #init_struct_def, #struct

Constructor Details

#initializeIrregularVerb

Returns a new instance of IrregularVerb.



10
11
12
# File 'lib/zenlish/wclasses/irregular_verb.rb', line 10

def initialize
  super()
end

Instance Attribute Details

#forms=(value) ⇒ Array<String> (writeonly)

Returns [the past simple form, past participle form].

Returns:

  • (Array<String>)

    [the past simple form, past participle form].



8
9
10
# File 'lib/zenlish/wclasses/irregular_verb.rb', line 8

def forms=(value)
  @forms = value
end

Instance Method Details

#extensionModule, NilClass

The mix-in module used to extend the lexeme

Returns:

  • (Module, NilClass)


16
17
18
# File 'lib/zenlish/wclasses/irregular_verb.rb', line 16

def extension
  IrregularVerbExtension
end