lib/constant_enum/base.rb
def method_missing(meth, *args, &block)
      if attributes.has_key?(meth)
        attributes[meth]
      else
        super
      end
    end
# Handle extra attribute methods like .label or .delivery_type
Handle extra attribute methods like .label or .delivery_type
Handle extra attribute methods like . label or . delivery_type
def method_missing(meth, *args, &block)
      if attributes.has_key?(meth)
        attributes[meth]
      else
        super
      end
    end
def method_missing ( meth , * args , & block ) if attributes . has_key? ( meth ) attributes [ meth ] else super end end
Handle extra attribute methods like .label or .delivery_type
Handle extra attribute methods like . label or . delivery_type
meth
args
block