Sha256: b14946405f9cc9c8f6c67b555f0b3ae705be2ea4708b3a0da4937f600c24c0bc

Contents?: true

Size: 622 Bytes

Versions: 2

Compression:

Stored size: 622 Bytes

Contents

# encoding: utf-8

module Axiom
  module Operation
    module Unary
      include Equalizer.new(:operand)

      # The operand to the operation
      #
      # @example
      #   operand = unary.operand
      #
      # @return [Object]
      #
      # @api public
      attr_reader :operand

      # Initialize Unary Operation
      #
      # @param [Object] operand
      #   the operand for the operation
      #
      # @return [undefined]
      #
      # @api private
      def initialize(operand)
        @operand = freeze_object(operand)
      end

    end # module Unary
  end # module Operation
end # module Axiom

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
axiom-0.1.1 lib/axiom/support/operation/unary.rb
axiom-0.1.0 lib/axiom/support/operation/unary.rb