Module: Indexable::Width
- Defined in:
- lib/sixarm_ruby_geometry/indexable/width.rb
Instance Method Summary collapse
-
#width ⇒ Object
Get width.
-
#width=(width) ⇒ Object
Set width.
Instance Method Details
#width ⇒ Object
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 |