Class: Array

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

Instance Method Summary collapse

Instance Method Details

#xObject



8
9
10
# File 'lib/scratchpad.rb', line 8

def x
  self[0]
end

#x=(val) ⇒ Object



12
13
14
# File 'lib/scratchpad.rb', line 12

def x=(val)
  self[0]=val
end

#yObject



16
17
18
# File 'lib/scratchpad.rb', line 16

def y
  self[1]
end

#y=(val) ⇒ Object



20
21
22
# File 'lib/scratchpad.rb', line 20

def y=(val)
  self[1]=val
end