Class: NumeritajTipo::EnumBase

Inherits:
Object
  • Object
show all
Defined in:
lib/numeritaj_tipo/enum_base.rb

Class Method Summary collapse

Class Method Details

.build(other) ⇒ Object



4
5
6
# File 'lib/numeritaj_tipo/enum_base.rb', line 4

def build(other)
  values.find {|value| value == other.to_sym }
end