Sha256: e183d3bd2f090177635d164380aba6146b513f57bfe15008bd4e1d72904e1c9a
Contents?: true
Size: 358 Bytes
Versions: 2
Compression:
Stored size: 358 Bytes
Contents
module Brigadier module Exceptions class Base < StandardError attr_reader :obj def initialize(obj) @obj = obj end def as_str "%s '%s': %s" % [ parameter_type, obj.name, message ] end private def parameter_type obj.class.to_s.to_s.gsub(/^.*::/, '') end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
brigadier-0.1.2 | lib/brigadier/exceptions/base.rb |
brigadier-0.1.1 | lib/brigadier/exceptions/base.rb |