Class: String
- Inherits:
-
Object
- Object
- String
- Defined in:
- lib/miriad.rb
Overview
The MIRIAD package adds angle parsing methods to String class.
Instance Method Summary collapse
-
#dms_to_d ⇒ Object
(also: #hms_to_h)
Parse a “dd:mm:ss.sss” String to Numeric degrees.
Instance Method Details
#dms_to_d ⇒ Object Also known as: hms_to_h
Parse a “dd:mm:ss.sss” String to Numeric degrees. NOT the inverse of Numeric#to_dmsstr (but may become so).
122 |
# File 'lib/miriad.rb', line 122 def dms_to_d; Miriad::AngleConversion::dms_to_d(*split(':').map{|s| s.to_f}); end |