Sha256: 4d6333d3ac7dcdb3d0a91d4c42cde61732e07a14232375997dea69b1bf836468
Contents?: true
Size: 238 Bytes
Versions: 3
Compression:
Stored size: 238 Bytes
Contents
class ErrorBase < StandardError def initialize( *message ) _v = message.join(' ') @_msg = !_v.empty? ? _v : self.class::MESSAGE @_code = self.class::CODE end def code @_code end def message @_msg end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
sinatra-errorcodes-0.1.2 | lib/error_base.rb |
sinatra-errorcodes-0.1.1 | lib/error_base.rb |
sinatra-errorcodes-0.1.0 | lib/error_base.rb |