Class: Ryodo::Rule

Inherits:
Struct
  • Object
show all
Defined in:
lib/ryodo/rule.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#childrenObject

Returns the value of attribute children

Returns:

  • (Object)

    the current value of children



2
3
4
# File 'lib/ryodo/rule.rb', line 2

def children
  @children
end

#exceptionObject

Returns the value of attribute exception

Returns:

  • (Object)

    the current value of exception



2
3
4
# File 'lib/ryodo/rule.rb', line 2

def exception
  @exception
end

#stop_okObject

Returns the value of attribute stop_ok

Returns:

  • (Object)

    the current value of 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?

Returns:

  • (Boolean)


3
4
5
# File 'lib/ryodo/rule.rb', line 3

def children?
  !children.empty?
end

#suffix?Boolean Also known as: is_suffix?

Returns:

  • (Boolean)


8
9
10
# File 'lib/ryodo/rule.rb', line 8

def suffix?
  stop_ok
end