Method: Fit::Fixture#parse
- Defined in:
- lib/fit/fixture.rb
#parse(string, klass) ⇒ Object
272 273 274 275 276 277 278 279 280 |
# File 'lib/fit/fixture.rb', line 272 def parse string, klass if klass == Date d = Date._parse string return [d[:year], d[:mon], d[:mday], d[:hour], d[:min], d[:sec], d[:zone], d[:wday]] end return ScientificDouble.value_of(string) if klass == ScientificDouble return string if klass == String nil end |