Class: Minicontext::Router::Noting

Inherits:
Maybe
  • Object
show all
Defined in:
lib/minicontext/router.rb

Instance Method Summary collapse

Constructor Details

#initialize(val = nil) ⇒ Noting

Returns a new instance of Noting.



30
31
32
# File 'lib/minicontext/router.rb', line 30

def initialize(val = nil)
  @val = val
end

Instance Method Details

#[](name) ⇒ Object



34
35
36
# File 'lib/minicontext/router.rb', line 34

def [](name)
  self
end

#valueObject



38
39
40
# File 'lib/minicontext/router.rb', line 38

def value
  nil
end