Sha256: 818cde0c9c386dc99d564b6755a326dad824fa90ec638b87d4c2e22d10e7f130

Contents?: true

Size: 264 Bytes

Versions: 8

Compression:

Stored size: 264 Bytes

Contents

module Kl
  # Absvectors are just arrays. We give them their own subclass
  # to support the absvector? primitive.
  class Absvector < Array
    attr_reader :upper_limit

    def initialize(n)
      super(n, :"shen.fail!")
      @upper_limit = n
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
shen-ruby-0.10.0 lib/kl/absvector.rb
shen-ruby-0.9.0 lib/kl/absvector.rb
shen-ruby-0.8.1 lib/kl/absvector.rb
shen-ruby-0.8.0 lib/kl/absvector.rb
shen-ruby-0.7.0 lib/kl/absvector.rb
shen-ruby-0.6.0 lib/kl/absvector.rb
shen-ruby-0.5.0 lib/kl/absvector.rb
shen-ruby-0.4.1 lib/kl/absvector.rb