module Articles
Public Instance Methods
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
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