Class: Tibber::Enum

Inherits:
Object
  • Object
show all
Defined in:
lib/tibber/const.rb

Direct Known Subclasses

Avatar, HomeType, Resolution, Screens

Class Method Summary collapse

Class Method Details

.enum(array) ⇒ Object



4
5
6
7
8
# File 'lib/tibber/const.rb', line 4

def self.enum(array)
  array.each do |c|
    const_set c,c
  end
end