module Articles

Public Instance Methods

A(entity)
Alias for: a_
An(entity)
Alias for: a_
The(entity)
Alias for: the_
a(entity) click to toggle source

Get a name for the entity with an indefinite article (unless the entity has a proper name).

@param entity [Gamefic::Entity] @return [String]

# File lib/gamefic-standard/articles.rb, line 7
def a(entity)
  entity.indefinitely
end
Also aliased as: an
a_(entity) click to toggle source

Get a capitalized name for the entity with an indefinite article (unless the entity has a proper name).

@param entity [Gamefic::Entity] @return [String]

# File lib/gamefic-standard/articles.rb, line 26
def a_(entity)
  entity.indefinitely.cap_first
end
Also aliased as: an_, A, An
an(entity)
Alias for: a
an_(entity)
Alias for: a_
the(entity) click to toggle source

Get a name for the entity with a definite article (unless the entity has a proper name).

@param entity [Gamefic::Entity] @return [String]

# File lib/gamefic-standard/articles.rb, line 17
def the(entity)
  entity.definitely
end
the_(entity) click to toggle source

Get a capitalized name for the entity with a definite article (unless the entity has a proper name).

@param entity [Gamefic::Entity] @return [String]

# File lib/gamefic-standard/articles.rb, line 38
def the_(entity)
  entity.definitely.cap_first
end
Also aliased as: The