Class: Kl::Absvector
- Inherits:
-
Array
- Object
- Array
- Kl::Absvector
- Defined in:
- lib/kl/absvector.rb
Overview
Absvectors are just arrays. We give them their own subclass to support the absvector? primitive.
Instance Attribute Summary collapse
-
#upper_limit ⇒ Object
readonly
Returns the value of attribute upper_limit.
Instance Method Summary collapse
-
#initialize(n) ⇒ Absvector
constructor
A new instance of Absvector.
Constructor Details
#initialize(n) ⇒ Absvector
Returns a new instance of Absvector.
7 8 9 10 |
# File 'lib/kl/absvector.rb', line 7 def initialize(n) super(n, :"shen.fail!") @upper_limit = n end |
Instance Attribute Details
#upper_limit ⇒ Object (readonly)
Returns the value of attribute upper_limit.
5 6 7 |
# File 'lib/kl/absvector.rb', line 5 def upper_limit @upper_limit end |