Class: Never

Inherits:
Object show all
Defined in:
lib/rmaybe.rb

Direct Known Subclasses

Maybe

Instance Attribute Summary collapse

Instance Method Summary collapse

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(*args) ⇒ Object



10
11
12
# File 'lib/rmaybe.rb', line 10

def method_missing(*args)
  self
end

Instance Attribute Details

#valueObject

Returns the value of attribute value.



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

def value
  @value
end

Instance Method Details

#endObject



14
15
16
# File 'lib/rmaybe.rb', line 14

def end
  nil
end

#maybeObject



18
19
20
# File 'lib/rmaybe.rb', line 18

def maybe
  self
end

#maybe?Boolean

Returns:

  • (Boolean)


22
23
24
# File 'lib/rmaybe.rb', line 22

def maybe?
  true
end