Module: Codshit::Chooseable

Included in:
String, Symbol
Defined in:
lib/codshit.rb

Instance Method Summary collapse

Instance Method Details

#choicesObject



8
9
10
# File 'lib/codshit.rb', line 8

def choices
  [self]
end

#|(other) ⇒ Object



4
5
6
# File 'lib/codshit.rb', line 4

def |(other)
  Codshit::Choice.new(*(self.choices + other.choices))
end