Class: RFunk::None

Inherits:
Object
  • Object
show all
Includes:
Singleton
Defined in:
lib/rfunk/none.rb

Instance Method Summary collapse

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(method, *arguments, &block) ⇒ Object



13
14
15
# File 'lib/rfunk/none.rb', line 13

def method_missing(method, *arguments, &block)
  self
end

Instance Method Details

#or(other) ⇒ Object



9
10
11
# File 'lib/rfunk/none.rb', line 9

def or(other)
  Option(other)
end

#value(default = nil) ⇒ Object



5
6
7
# File 'lib/rfunk/none.rb', line 5

def value(default = nil)
  Option(default)
end