Array class of PicoRuby
Instance methods (picoruby-editor)
insert
instance.insert(Integer index, *Elem) -> void
Instance methods (picoruby-pack)
pack
instance.pack(String format) -> String
Include
Singleton methods
new
Array.new() -> instance
Array.new(::Array[Elem] ary) -> instance
Array.new(int size, ?Elem val) -> instance
Instance methods
&
instance.&(::Array[untyped]) -> ::Array[Elem]
*
instance.*(string str) -> ::String
instance.*(int int) -> ::Array[Elem]
+
instance.+[U] (Array[U]) -> ::Array[Elem | U]
-
instance.-[U] (Array[U]) -> ::Array[Elem]
«
instance.<<(Elem) -> self
<=>
instance.<=>(untyped) -> ::Integer?
==
instance.==(untyped other) -> bool
[]
instance.[](int index) -> Elem
instance.[](int start, int length) -> ::Array[Elem]?
[]=
instance.[]=(int index, Elem obj) -> Elem
instance.[]=(int start, int length, Elem obj) -> Elem
instance.[]=(int start, int length, ::Array[Elem]) -> ::Array[Elem]
instance.[]=(int start, int length, nil) -> nil
instance.[]=(::Range[::Integer?], Elem obj) -> Elem
instance.[]=(::Range[::Integer?], ::Array[Elem]) -> ::Array[Elem]
instance.[]=(::Range[::Integer?], nil) -> nil
all?
instance.all?() -> bool
instance.all?() { (Elem obj) -> boolish } -> bool
at
instance.at(int index) -> Elem?
clear
instance.clear() -> self
collect!
instance.collect!() { (Elem item) -> Elem } -> self
count
instance.count() -> ::Integer
instance.count(Elem obj) -> ::Integer
instance.count() { (Elem) -> boolish } -> ::Integer
delete_at
instance.delete_at(int index) -> Elem?
delete_if
instance.delete_if() { (Elem item) -> boolish } -> self
each
instance.each() { (Elem item) -> void } -> self
each_index
instance.each_index() { (::Integer index) -> void } -> self
empty?
instance.empty?() -> bool
find_index
instance.find_index(untyped obj) -> ::Integer?
instance.find_index() { (Elem item) -> boolish } -> ::Integer?
first
instance.first() -> Elem?
instance.first(int n) -> ::Array[Elem]
flatten
instance.flatten() -> ::Array[Elem]
include?
instance.include?(Elem object) -> bool
inspect
instance.inspect() -> String
join
instance.join(?string separator) -> String
last
instance.last() -> Elem?
instance.last(int n) -> ::Array[Elem]
length
instance.length() -> ::Integer
max
instance.max() -> Elem?
instance.max() { (Elem a, Elem b) -> ::Integer? } -> Elem?
instance.max(int n) -> ::Array[Elem]
instance.max(int n) { (Elem a, Elem b) -> ::Integer? } -> ::Array[Elem]
pop
instance.pop() -> Elem?
instance.pop(int n) -> ::Array[Elem]
push
instance.push(*Elem obj) -> self
reject
instance.reject() { (Elem item) -> boolish } -> ::Array[Elem]
reject!
instance.reject!() { (Elem item) -> boolish } -> self
shift
instance.shift() -> Elem?
instance.shift(int n) -> ::Array[Elem]
sort
instance.sort() -> ::Array[Elem]
instance.sort() { (Elem a, Elem b) -> ::Integer } -> ::Array[Elem]
sort!
instance.sort!() -> self
instance.sort!() { (Elem a, Elem b) -> ::Integer } -> self
unshift
instance.unshift(*Elem obj) -> self
|
instance.|[T] (::Array[T] other_ary) -> ::Array[Elem | T]