Skip to content

Instantly share code, notes, and snippets.

@chrisseaton
Created April 8, 2014 17:14
Show Gist options
  • Save chrisseaton/10157934 to your computer and use it in GitHub Desktop.
Save chrisseaton/10157934 to your computer and use it in GitHub Desktop.
class ValidValue
def initialize(value)
@value = value
end
attr_reader :value
end
class HighValue
end
HIGH = HighValue.new
class LowValue
end
LOW = LowValue.new
values = [HIGH, ValidValue.new(14), LOW, LOW, ValidValue.new(26)]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment