Class: RIActions

Inherits:
Object
  • Object
show all
Defined in:
lib/RIUI/RIActions.rb

Instance Method Summary collapse

Constructor Details

#initializeRIActions

Returns a new instance of RIActions.



4
5
6
7
8
# File 'lib/RIUI/RIActions.rb', line 4

def initialize
  @initialized = true
  @objects = [0]
  actions
end

Instance Method Details

#activeObject



19
# File 'lib/RIUI/RIActions.rb', line 19

def active; @active; end

#add(object) ⇒ Object



9
10
11
12
13
14
15
16
# File 'lib/RIUI/RIActions.rb', line 9

def add(object)
  if @objects[0] == 0
    @objects.pop
    @objects.push(object)
  else
    @objects.push(object)
  end
end

#holdingObject



18
# File 'lib/RIUI/RIActions.rb', line 18

def holding; @holding; end

#initializedObject



20
# File 'lib/RIUI/RIActions.rb', line 20

def initialized; @initialized; end

#objectsObject



21
# File 'lib/RIUI/RIActions.rb', line 21

def objects; @objects; end