Class: Ryodo::Rule
- Inherits:
-
Struct
- Object
- Struct
- Ryodo::Rule
- Defined in:
- lib/ryodo/rule.rb
Instance Attribute Summary collapse
-
#children ⇒ Object
Returns the value of attribute children.
-
#exception ⇒ Object
Returns the value of attribute exception.
-
#stop_ok ⇒ Object
Returns the value of attribute stop_ok.
Instance Method Summary collapse
- #children? ⇒ Boolean (also: #has_children?)
- #suffix? ⇒ Boolean (also: #is_suffix?)
Instance Attribute Details
#children ⇒ Object
Returns the value of attribute children
2 3 4 |
# File 'lib/ryodo/rule.rb', line 2 def children @children end |
#exception ⇒ Object
Returns the value of attribute exception
2 3 4 |
# File 'lib/ryodo/rule.rb', line 2 def exception @exception end |
#stop_ok ⇒ Object
Returns the value of attribute stop_ok
2 3 4 |
# File 'lib/ryodo/rule.rb', line 2 def stop_ok @stop_ok end |
Instance Method Details
#children? ⇒ Boolean Also known as: has_children?
3 4 5 |
# File 'lib/ryodo/rule.rb', line 3 def children? !children.empty? end |
#suffix? ⇒ Boolean Also known as: is_suffix?
8 9 10 |
# File 'lib/ryodo/rule.rb', line 8 def suffix? stop_ok end |