Method: MagicCloud::Rect#width
- Defined in:
- lib/magic_cloud/rect.rb
#width ⇒ Object
NB: we are trying to use instance variables instead of accessors
inside this class methods, because they are called so many
times that accessor overhead IS significant.
18 19 20 |
# File 'lib/magic_cloud/rect.rb', line 18 def width @x1 - @x0 end |