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