Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Foo
- def Bar(str)
- year = str[0..1].to_i + 2000
- month = str[2].ord - 48
- day = str[3].ord - 48
- hour = str[4].ord - 48
- min = str[5].ord - 48
- sec = str[6].ord - 48
- # ...
- end
- end
- class Foo
- def Bar
- ADJ = 48
- month = str[2].ord - ADJ
- day = str[3].ord - ADJ
- hour = str[4].ord - ADJ
- min = str[5].ord - ADJ
- sec = str[6].ord - ADJ
- # ...
- end
- end
- adj = 48
- module Foo
- XYZ = ...
- def bar
- ...
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement