Sha256: ad6964842efd8e6fe6d033712e22f2e2e34893f89c40900748dbf3a21a804dbc
Contents?: true
Size: 750 Bytes
Versions: 111
Compression:
Stored size: 750 Bytes
Contents
module BELParser module Language module Semantics # SemanticsResult represents the successful outcome of applying a # {SemanticsFunction}. class SemanticsResult 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 "Successful semantic validation of #{@expression_node.type}." end def to_s "Info: #{msg}" end end end end end
Version data entries
111 entries across 111 versions & 1 rubygems