Method: Fleximage::Operator::Base#size_to_xy
- Defined in:
- lib/fleximage/operator/base.rb
#size_to_xy(size) ⇒ Object
Converts a size object to an [x,y] array. Acceptible formats are:
-
10
-
“10”
-
“10x20”
- 10, 20
Usage:
x, y = size_to_xy("10x20")
120 121 122 |
# File 'lib/fleximage/operator/base.rb', line 120 def size_to_xy(size) self.class.size_to_xy size end |