Sha256: c8cb1da33ef053558367c27ba5cecfbe643c3f6dee697e5499e025f6972b99ad
Contents?: true
Size: 718 Bytes
Versions: 111
Compression:
Stored size: 718 Bytes
Contents
module BELParser module Language module Syntax # SyntaxResult represents the result of running a {SyntaxFunction}. class SyntaxResult attr_reader :expression_node, :specification def initialize(expression_node, specification) @expression_node = expression_node @specification = specification end def success? true end def failure? false end # @abstract Subclass and override {#msg} to provide the message. def msg raise NotImplementedError, "#{__method__} is not implemented." end def to_s "Info: #{msg}" end end end end end
Version data entries
111 entries across 111 versions & 1 rubygems