Class: RFunk::Option

Inherits:
Object
  • Object
show all
Extended by:
Forwardable
Includes:
Enumerable
Defined in:
lib/rfunk/maybe/option.rb

Direct Known Subclasses

None, Some

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.descendantsObject (readonly)

Returns the value of attribute descendants


12
13
14
# File 'lib/rfunk/maybe/option.rb', line 12

def descendants
  @descendants
end

Class Method Details

.inherited(subclass) ⇒ Object


7
8
9
10
# File 'lib/rfunk/maybe/option.rb', line 7

def inherited(subclass)
  @descendants ||= []
  @descendants << subclass
end