module Indexable::WidthHeight
Public Instance Methods
height()
click to toggle source
Get height.
# File lib/sixarm_ruby_geometry/indexable/width_height.rb, line 19 def height self[1] end
height=(height)
click to toggle source
Set height.
# File lib/sixarm_ruby_geometry/indexable/width_height.rb, line 24 def height=(height) self[1]=height end
width()
click to toggle source
Get width.
# File lib/sixarm_ruby_geometry/indexable/width_height.rb, line 9 def width self[0] end
width=(width)
click to toggle source
Set width.
# File lib/sixarm_ruby_geometry/indexable/width_height.rb, line 14 def width=(width) self[0]=width end