Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #purpouse : this class got date and generate week range monday to friday as well week number
- class week
- def initialize(date)
- @actualday=date
- @actualposition=actualday.wday
- @monday=actualday-actualposition
- @tuesday=actualday-actualposition +1
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement