Class: Module

Inherits:
Object show all
Defined in:
lib/symbols.rb

Instance Method Summary collapse

Instance Method Details

#const_def(hash) ⇒ Object



3
4
5
6
7
8
9
# File 'lib/symbols.rb', line 3

def const_def(hash)
  hash.each do |key, value|
    define_method key do
      value
    end
  end
end