Sha256: 18b60b2ababc5d9c0330c30d4132ec6e1d76708e7af63dac3f9454b18d16726a
Contents?: true
Size: 1.08 KB
Versions: 6
Compression:
Stored size: 1.08 KB
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 class Gamefic::Plot include Articles end class Gamefic::Subplot include Articles end
Version data entries
6 entries across 6 versions & 1 rubygems