Sha256: 55066627b3671ba00401e9b407bd04fd242139cf220bb5ae6aaba21f3b2760dc

Contents?: true

Size: 270 Bytes

Versions: 3

Compression:

Stored size: 270 Bytes

Contents

module Mustang
  module V8
    class Error
      def inspect
        "#{name}: #{message}"
      end
      
      def to_s
        message
      end
      
      def name
        self.class.name.delete("Mustang::V8::")
      end
    end # Error
  end # V8
end # Mustang

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
mustang-0.2.2 lib/mustang/v8/error.rb
mustang-0.2.1 lib/mustang/v8/error.rb
mustang-0.2.0 lib/mustang/v8/error.rb