Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # make singulars work
- class Numeric
- def method_missing(method_id,*args,&block) # capture all args in case need to call super
- if method_id.to_s == 'euro'
- self.send('euros')
- else
- super
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement