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