Class: OptionClass

Inherits:
Object
  • Object
show all
Defined in:
lib/option.rb

Direct Known Subclasses

NoneClass, SomeClass

Instance Method Summary collapse

Instance Method Details

#==(that) ⇒ Object



6
7
8
9
10
11
# File 'lib/option.rb', line 6

def ==(that)
  case that
    when OptionClass then or_nil == that.or_nil
    else or_nil == that
  end
end

#or_nilObject



3
4
# File 'lib/option.rb', line 3

def or_nil
end