Sha256: 531473e048963f81fe05394702cef024b53aeafd4138b9bf3017dc44128b1563

Contents?: true

Size: 345 Bytes

Versions: 2

Compression:

Stored size: 345 Bytes

Contents

class Deribit::ImmutableHeaderKey
  attr_reader :key

  def initialize(key)
    @key = key
  end

  def downcase
    self
  end

  def capitalize
    self
  end

  def split(*)
    [self]
  end

  def hash
    key.hash
  end

  def eql?(other)
    key.eql? other.key.eql?
  end

  def to_s
    def self.to_s
      key
    end
    self
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
deribit-1.4.3 lib/deribit/immutable_header_key.rb
deribit-1.3.2 lib/deribit/immutable_header_key.rb