Sha256: 0d0a6140847616cfae0ee0150ed787dc9831276ac832367502aa079cbaf1b8ff

Contents?: true

Size: 250 Bytes

Versions: 2

Compression:

Stored size: 250 Bytes

Contents

module Ryodo
  Rule = Struct.new(:exception, :stop_ok, :children) do
    def children?
      !children.empty?
    end
    alias_method :has_children?, :children?

    def suffix?
      stop_ok
    end
    alias_method :is_suffix?, :suffix?
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ryodo-0.3.2 lib/ryodo/rule.rb
ryodo-0.3.1 lib/ryodo/rule.rb