Class: ExifrDegreeComuter
- Inherits:
-
Object
- Object
- ExifrDegreeComuter
- Defined in:
- lib/piggy-core/exifr_adapter.rb
Overview
Simulate rmagick image to compte degree instead of rotate.
Instance Attribute Summary collapse
-
#degree ⇒ Object
readonly
Returns the value of attribute degree.
Instance Method Summary collapse
- #flip ⇒ Object
- #flop ⇒ Object
-
#initialize ⇒ ExifrDegreeComuter
constructor
A new instance of ExifrDegreeComuter.
- #rotate(degree) ⇒ Object
Constructor Details
#initialize ⇒ ExifrDegreeComuter
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
#degree ⇒ Object (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
#flip ⇒ Object
99 100 |
# File 'lib/piggy-core/exifr_adapter.rb', line 99 def flip end |
#flop ⇒ Object
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 |