class Paperclip::GeometryParser
Constants
- FORMAT
Public Class Methods
new(string)
click to toggle source
# File lib/paperclip/geometry_parser_factory.rb, line 4 def initialize(string) @string = string end
Public Instance Methods
make()
click to toggle source
# File lib/paperclip/geometry_parser_factory.rb, line 8 def make if match Geometry.new( :height => @height, :width => @width, :modifier => @modifier, :orientation => @orientation ) end end
Private Instance Methods
match()
click to toggle source
# File lib/paperclip/geometry_parser_factory.rb, line 21 def match if actual_match = @string && @string.match(FORMAT) @width = actual_match[1] @height = actual_match[2] @orientation = actual_match[3] @modifier = actual_match[4] end actual_match end