Class: Mahoujin::Atoms::Optional
- Inherits:
-
Object
- Object
- Mahoujin::Atoms::Optional
- Defined in:
- lib/mahoujin/atoms/optional.rb
Instance Attribute Summary collapse
-
#atom ⇒ Object
readonly
Returns the value of attribute atom.
Instance Method Summary collapse
-
#initialize(atom) ⇒ Optional
constructor
A new instance of Optional.
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
#atom ⇒ Object (readonly)
Returns the value of attribute atom.
4 5 6 |
# File 'lib/mahoujin/atoms/optional.rb', line 4 def atom @atom end |