Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- module MetersHelper
- def only_uniq value, prefix = '', suffix = ''
- if values.include? value
- return ''
- else
- values << value
- prefix + value + suffix
- end
- end
- private
- def values
- @values ||= []
- end
- end
Add Comment
Please, Sign In to add comment