Sha256: a74885752fadfc251836bc424156f2776a73510ca9c2266dee0a9f5a6a4dbc51

Contents?: true

Size: 343 Bytes

Versions: 9

Compression:

Stored size: 343 Bytes

Contents

module Bmg
  module Operator
    module Unary
      include Operator

    protected

      attr_reader :operand

      def _visit(parent, visitor)
        visitor.call(self, parent)
        operand._visit(self, visitor)
      end

      def operands
        [operand]
      end

    end # module Unary
  end # module Operator
end # module Bmg

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
bmg-0.16.7 lib/bmg/operator/shared/unary.rb
bmg-0.16.6 lib/bmg/operator/shared/unary.rb
bmg-0.16.5 lib/bmg/operator/shared/unary.rb
bmg-0.16.4 lib/bmg/operator/shared/unary.rb
bmg-0.16.3 lib/bmg/operator/shared/unary.rb
bmg-0.16.2 lib/bmg/operator/shared/unary.rb
bmg-0.16.1 lib/bmg/operator/shared/unary.rb
bmg-0.16.0 lib/bmg/operator/shared/unary.rb
bmg-0.16.0.pre.rc2 lib/bmg/operator/shared/unary.rb