Module: Gamefic::Grammar::WordAdapter

Includes:
Gender, Person, Plural
Included in:
Entity, Plot::YouMount::YouGrammarSet
Defined in:
lib/gamefic/grammar/word_adapter.rb

Instance Attribute Summary

Attributes included from Plural

#plural

Attributes included from Person

#person

Attributes included from Gender

#gender

Instance Method Summary collapse

Methods included from Plural

#plural?

Instance Method Details

#contract(words) ⇒ Object



17
18
19
# File 'lib/gamefic/grammar/word_adapter.rb', line 17

def contract words
  contractions[words] || words
end

#pronounGamefic::Grammar::Pronouns



10
11
12
# File 'lib/gamefic/grammar/word_adapter.rb', line 10

def pronoun
  @pronoun ||= Gamefic::Grammar::Pronouns.new(self)
end

#verbGamefic::Grammar::Verbs



14
15
16
# File 'lib/gamefic/grammar/word_adapter.rb', line 14

def verb
  @verb ||= Gamefic::Grammar::Verbs.new(self)
end