Class: Elrio::PointSize
- Inherits:
-
Object
- Object
- Elrio::PointSize
- Defined in:
- lib/elrio/point_size.rb
Class Method Summary collapse
Class Method Details
.from_filename(filename) ⇒ Object
3 4 5 |
# File 'lib/elrio/point_size.rb', line 3 def self.from_filename(filename) filename =~ /@2x/ ? 2 : 1 end |