Sha256: e4afaf2e55c0c4019ae32232cf8fc829d29ce2e0faff2c0dde5caf71040228b0

Contents?: true

Size: 324 Bytes

Versions: 9

Compression:

Stored size: 324 Bytes

Contents

module KktShoppe
  class Error < StandardError

    def initialize(options = {})
      if options.is_a?(String)
        @options = {:message => options}
      else
        @options = options
      end
    end
    
    def message
      @options[:message]
    end
    
    def options
      @options
    end
    
  end  
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
kkt_shoppe-2.0.2 lib/kkt_shoppe/error.rb
kkt_shoppe-2.0.1 lib/kkt_shoppe/error.rb
kkt_shoppe-2.0.0 lib/kkt_shoppe/error.rb
kkt_shoppe-1.3.0 lib/kkt_shoppe/error.rb
kkt_shoppe-1.2.1 lib/kkt_shoppe/error.rb
kkt_shoppe-1.2.0 lib/kkt_shoppe/error.rb
kkt_shoppe-1.1.2 lib/kkt_shoppe/error.rb
kkt_shoppe-1.1.1 lib/kkt_shoppe/error.rb
kkt_shoppe-1.1.0 lib/kkt_shoppe/error.rb