Class TimeSymbol
In: lib/dated_backup/extensions/time_symbol.rb
lib/dated_backup/extensions/time_symbol.rb
lib/dated_backup/extensions/time_symbol.rb
Parent: Object

Used to change the the TimeSymbols (:year, :month, :day, and :week) into the various natural language forms (the symbols singular, plural, and adverb). Initialize with the singular symbol name, or call TimeSymbol.valid_symbols to give an array of valid symbols.

Methods

Constants

VALID_TIME_COMPONENTS = [:year, :month, :week, :day] unless const_defined?("VALID_TIME_COMPONENTS")
VALID_TIME_COMPONENTS = [:year, :month, :week, :day] unless const_defined?("VALID_TIME_COMPONENTS")
VALID_TIME_COMPONENTS = [:year, :month, :week, :day] unless const_defined?("VALID_TIME_COMPONENTS")

External Aliases

all -> valid_symbols
all -> valid_symbols
all -> valid_symbols

Public Class methods

Public Instance methods

to_adverb()

Alias for adverb

to_adverb()

Alias for adverb

to_adverb()

Alias for adverb

to_plural()

Alias for plural

to_plural()

Alias for plural

to_plural()

Alias for plural

to_plural_adverb()

Alias for plural_adverb

to_plural_adverb()

Alias for plural_adverb

to_plural_adverb()

Alias for plural_adverb

to_singular()

Alias for singular

to_singular()

Alias for singular

to_singular()

Alias for singular

[Validate]