Class: Array
- Inherits:
-
Object
- Object
- Array
- Defined in:
- lib/scratchpad.rb
Instance Method Summary collapse
Instance Method Details
#x ⇒ Object
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 |
#y ⇒ Object
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 |