Class: Integra365::Enum
- Inherits:
-
Object
- Object
- Integra365::Enum
- Defined in:
- lib/integra365/const.rb
Direct Known Subclasses
Class Method Summary collapse
Class Method Details
.enum(array, proc = :to_s) ⇒ Object
5 6 7 8 9 |
# File 'lib/integra365/const.rb', line 5 def self.enum(array, proc=:to_s) array.each do |c| const_set c.upcase,c end end |