Module: Articles
- Included in:
- Gamefic::Standard
- Defined in:
- lib/gamefic-standard/articles.rb
Instance Method Summary collapse
-
#a(entity) ⇒ String
(also: #an)
Get a name for the entity with an indefinite article (unless the entity has a proper name).
-
#a_(entity) ⇒ String
(also: #an_, #A, #An)
Get a capitalized name for the entity with an indefinite article (unless the entity has a proper name).
-
#the(entity) ⇒ String
Get a name for the entity with a definite article (unless the entity has a proper name).
-
#the_(entity) ⇒ String
(also: #The)
Get a capitalized name for the entity with a definite article (unless the entity has a proper name).
Instance Method Details
#a(entity) ⇒ String Also known as: an
Get a name for the entity with an indefinite article (unless the entity has a proper name).
7 8 9 |
# File 'lib/gamefic-standard/articles.rb', line 7 def a(entity) entity.indefinitely end |
#a_(entity) ⇒ String Also known as: an_, A, An
Get a capitalized name for the entity with an indefinite article (unless the entity has a proper name).
26 27 28 |
# File 'lib/gamefic-standard/articles.rb', line 26 def a_(entity) entity.indefinitely.cap_first end |
#the(entity) ⇒ String
Get a name for the entity with a definite article (unless the entity has a proper name).
17 18 19 |
# File 'lib/gamefic-standard/articles.rb', line 17 def the(entity) entity.definitely end |
#the_(entity) ⇒ String Also known as: The
Get a capitalized name for the entity with a definite article (unless the entity has a proper name).
38 39 40 |
# File 'lib/gamefic-standard/articles.rb', line 38 def the_(entity) entity.definitely.cap_first end |