Sha256: 4e74387c46d12ecbbe5bdf637fb871ebe5254296e98c91996e80b52b81ca6d92

Contents?: true

Size: 368 Bytes

Versions: 5

Compression:

Stored size: 368 Bytes

Contents

# frozen_string_literal: true

class Code
  class Error < StandardError
    class Break < Error
      attr_reader :code_value

      def initialize(value = nil)
        @code_value = value.to_code
      end
    end

    class Next < Error
      attr_reader :code_value

      def initialize(value = nil)
        @code_value = value.to_code
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
code-ruby-1.2.5 lib/code/error.rb
code-ruby-1.2.4 lib/code/error.rb
code-ruby-1.2.3 lib/code/error.rb
code-ruby-1.2.2 lib/code/error.rb
code-ruby-1.2.1 lib/code/error.rb