Class: LIT::Object::Array
- Inherits:
-
Object
- Object
- LIT::Object::Array
- Defined in:
- lib/lit/object/array.rb
Overview
Instance Method Summary collapse
- #[](index) ⇒ Object
- #__values__ ⇒ Object
- #each(&block) ⇒ Object
-
#initialize(*values) ⇒ Array
constructor
A new instance of Array.
- #to_a ⇒ Object
Constructor Details
#initialize(*values) ⇒ Array
Returns a new instance of Array.
8 9 10 11 |
# File 'lib/lit/object/array.rb', line 8 def initialize(*values) values.each { |v| check_type!(v) } @values = values end |