class SmartEnum::Attributes::Attribute
Attributes
coercer[R]
name[R]
types[R]
Public Class Methods
new(name, types, coercer)
click to toggle source
# File lib/smart_enum/attributes.rb, line 132 def initialize(name, types, coercer) @name = name @types = types @coercer = coercer end
Public Instance Methods
inspect()
click to toggle source
# File lib/smart_enum/attributes.rb, line 138 def inspect type_str = types.length > 1 ? types.join("|") : types[0] "#{name}: #{type_str}" end