Class: RPxem::Stack

Inherits:
Array
  • Object
show all
Defined in:
lib/rpxem/stack.rb

Instance Method Summary collapse

Constructor Details

#initialize(*args, &block) ⇒ Stack

Returns a new instance of Stack.



3
4
5
6
# File 'lib/rpxem/stack.rb', line 3

def initialize(*args, &block)
  super(*args, &block)
  simple_check(*self)
end

Instance Method Details

#<<(*args, &block) ⇒ Object



18
19
20
21
# File 'lib/rpxem/stack.rb', line 18

def <<(*args, &block)
  simple_check(*args)
  super(*args, &block)
end

#[]=(*args, &block) ⇒ Object



23
24
25
26
# File 'lib/rpxem/stack.rb', line 23

def []=(*args, &block)
  super(*args, &block)
  simple_check(*self)
end

#insert(*args, &block) ⇒ Object



28
29
30
31
# File 'lib/rpxem/stack.rb', line 28

def insert(*args, &block)
  super(*args, &block)
  simple_check(*self)
end

#map!(*args, &block) ⇒ Object



33
34
35
36
# File 'lib/rpxem/stack.rb', line 33

def map!(*args, &block)
  super(*args, &block)
  simple_check(*self)
end

#push(*args, &block) ⇒ Object



8
9
10
11
# File 'lib/rpxem/stack.rb', line 8

def push(*args, &block)
  simple_check(*args)
  super(*args, &block)
end

#unshift(*args, &block) ⇒ Object



13
14
15
16
# File 'lib/rpxem/stack.rb', line 13

def unshift(*args, &block)
  simple_check(*args)
  super(*args, &block)
end