Module: Enum

Defined in:
lib/enum.rb,
lib/enum/base.rb,
lib/enum/version.rb,
lib/enum/predicates.rb,
lib/enum/key_in_use_error.rb,
lib/enum/init_not_hash_error.rb,
lib/enum/token_not_found_error.rb

Defined Under Namespace

Modules: Predicates Classes: Base, InitNotHashError, KeyInUseError, TokenNotFoundError

Constant Summary collapse

VERSION =
'0.4.5'

Class Method Summary collapse

Class Method Details

.[](*ary) ⇒ Object



8
9
10
11
12
# File 'lib/enum.rb', line 8

def self.[](*ary)
  Class.new(Base) do
    values(*ary)
  end
end