struct

Ansi::Params

Inherits Enumerable < Struct < Value < Object

Constructors

new(values : Array(Int32))
Source

Instance methods

==(other : Params) : Bool
Source
==(other : Array(Int32)) : Bool
Source
[](index : Int32) : Int32
Source
each

Must yield this collection's elements to the block.

Source
for_each(def_value : Int32, & : Int32, Int32, Bool -> ) : Nil
Source
param(i : Int32, def_value : Int32) : Tuple(Int32, Bool, Bool)
Source
size

Returns the number of elements in the collection.

[1, 2, 3, 4].size # => 4
Source
to_a

Returns an Array with all the elements in the collection.

(1..5).to_a # => [1, 2, 3, 4, 5]
Source