Class: Mahoujin::Atoms::Rule

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#atomObject (readonly)

Returns the value of attribute atom


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

def atom
  @atom
end

#rule_name_atomObject (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