Method: Fidgit::ImageFrame#initialize
- Defined in:
- lib/fidgit/elements/image_frame.rb
#initialize(image, options = {}) ⇒ ImageFrame
Returns a new instance of ImageFrame.
16 17 18 19 20 21 22 23 24 25 26 27 28 29 |
# File 'lib/fidgit/elements/image_frame.rb', line 16 def initialize(image, = {}) = { thumbnail: false, factor: 1, }.merge! @thumbnail = [:thumbnail] @factor_x = [:factor_x] || [:factor] @factor_y = [:factor_y] || [:factor] super() self.image = image end |