Sha256: 2938407dacb469aa976dacd54b176c2f2fd747d074d47217649ef5cef419f85d
Contents?: true
Size: 1005 Bytes
Versions: 1
Compression:
Stored size: 1005 Bytes
Contents
module Articles # Get a name for the entity with an indefinite article (unless the entity # has a proper name). # # @param entity [Gamefic::Entity] # @return [String] def a(entity) entity.indefinitely end alias an a # Get a name for the entity with a definite article (unless the entity has # a proper name). # # @param entity [Gamefic::Entity] # @return [String] def the(entity) entity.definitely end # Get a capitalized name for the entity with an indefinite article (unless # the entity has a proper name). # # @param entity [Gamefic::Entity] # @return [String] def a_(entity) entity.indefinitely.cap_first end alias an_ a_ alias A a_ alias An a_ # Get a capitalized name for the entity with a definite article (unless # the entity has a proper name). # # @param entity [Gamefic::Entity] # @return [String] def the_(entity) entity.definitely.cap_first end alias The the_ end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
gamefic-standard-3.2.4 | lib/gamefic-standard/articles.rb |