Class: Mahoujin::Atoms::Optional

Inherits:
Object
  • Object
show all
Defined in:
lib/mahoujin/atoms/optional.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(atom) ⇒ Optional

Returns a new instance of Optional


6
7
8
# File 'lib/mahoujin/atoms/optional.rb', line 6

def initialize(atom)
  @atom = atom
end

Instance Attribute Details

#atomObject (readonly)

Returns the value of attribute atom


4
5
6
# File 'lib/mahoujin/atoms/optional.rb', line 4

def atom
  @atom
end