Created
November 12, 2010 18:20
-
-
Save bretweinraub/674464 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def value=(new_value=[]) | |
if new_value.is_a? String | |
new_value = new_value.split(delimiter) | |
end | |
raise ArgumentError("argument to #{current_method} must be an Array").new unless new_value.is_a? Array | |
@value = new_value | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment