Class: ExifrDegreeComuter

Inherits:
Object
  • Object
show all
Defined in:
lib/piggy-core/exifr_adapter.rb

Overview

Simulate rmagick image to compte degree instead of rotate.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeExifrDegreeComuter

Returns a new instance of ExifrDegreeComuter.



92
93
94
# File 'lib/piggy-core/exifr_adapter.rb', line 92

def initialize
  @degree = 0
end

Instance Attribute Details

#degreeObject (readonly)

Returns the value of attribute degree.



90
91
92
# File 'lib/piggy-core/exifr_adapter.rb', line 90

def degree
  @degree
end

Instance Method Details

#flipObject



99
100
# File 'lib/piggy-core/exifr_adapter.rb', line 99

def flip
end

#flopObject



96
97
# File 'lib/piggy-core/exifr_adapter.rb', line 96

def flop
end

#rotate(degree) ⇒ Object



102
103
104
105
# File 'lib/piggy-core/exifr_adapter.rb', line 102

def rotate(degree)
  @degree = degree
  self
end