lib/fugit/nat.rb in fugit-0.9.6 vs lib/fugit/nat.rb in fugit-1.0.0
- old
+ new
@@ -114,22 +114,22 @@
k = tt.name
v = tt.string.downcase
case k
- when :numeral_hour
- [ k, NUMS.index(v) ]
- when :simple_hour
- [ k, v.to_i ]
- when :digital_hour
- v = v.gsub(/:/, '')
- [ k, [ v[0, 2], v[2, 2] ] ]
- when :name_hour
- [ :digital_hour, NHOURS[v] ]
- when :name_day
- [ k, WEEKDAYS.index(v[0, 3]) ]
- else
- [ k, v ]
+ when :numeral_hour
+ [ k, NUMS.index(v) ]
+ when :simple_hour
+ [ k, v.to_i ]
+ when :digital_hour
+ v = v.gsub(/:/, '')
+ [ k, [ v[0, 2], v[2, 2] ] ]
+ when :name_hour
+ [ :digital_hour, NHOURS[v] ]
+ when :name_day
+ [ k, WEEKDAYS.index(v[0, 3]) ]
+ else
+ [ k, v ]
end
}
end
end
end