Module: Indexable::Width

Defined in:
lib/sixarm_ruby_geometry/indexable/width.rb

Instance Method Summary collapse

Instance Method Details

#widthObject

Get width.



10
11
12
# File 'lib/sixarm_ruby_geometry/indexable/width.rb', line 10

def width
  self[0]
end

#width=(width) ⇒ Object

Set width.



15
16
17
# File 'lib/sixarm_ruby_geometry/indexable/width.rb', line 15

def width=(width)
  self[0]=width
end