Class: PhotoUtils::Angle
Instance Method Summary collapse
-
#initialize(n) ⇒ Angle
constructor
A new instance of Angle.
- #to_s ⇒ Object
Methods inherited from Float
Constructor Details
#initialize(n) ⇒ Angle
7 8 9 |
# File 'lib/photo_utils/angle.rb', line 7 def initialize(n) super(n.to_f) end |
Instance Method Details
#to_s ⇒ Object
11 12 13 |
# File 'lib/photo_utils/angle.rb', line 11 def to_s "#{format}°" end |