Class: Object
- Inherits:
- BasicObject
- Defined in:
- lib/util.rb
Defined Under Namespace
Classes: String
Instance Method Summary collapse
Instance Method Details
#maybe(default = nil) ⇒ Object
87 88 89 |
# File 'lib/util.rb', line 87 def maybe(default = nil) Util::Maybe.new(self, default) end |
#perhaps(default = self) ⇒ Object
91 92 93 |
# File 'lib/util.rb', line 91 def perhaps(default = self) maybe(default) end |
#self ⇒ Object
83 84 85 |
# File 'lib/util.rb', line 83 def self self end |