Sha256: 46ee4c6ac651e5b7c9691b40a441831a67d170cbd56eaa7cc6880e11abf48b12

Contents?: true

Size: 695 Bytes

Versions: 4

Compression:

Stored size: 695 Bytes

Contents

# Author::    Eric Crane  (mailto:eric.crane@mac.com)
# Copyright:: Copyright (c) 2019 Eric Crane.  All rights reserved.
#
# It is the value of the last command that was run.
#

module Gloo
  module Core
    class It

      attr_accessor :value

      #
      # Set up the object.
      #
      def initialize
        @value = nil
      end

      #
      # Set the value of it.
      #
      def set_to( new_value )
        @value = new_value
      end

      #
      # Get the string representation of it.
      #
      def to_s
        return @value.to_s
      end

      # 
      # Is this a function object?
      # 
      def is_function?
        return false
      end

    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
gloo-3.5.0 lib/gloo/core/it.rb
gloo-3.4.1 lib/gloo/core/it.rb
gloo-3.4.0 lib/gloo/core/it.rb
gloo-3.3.0 lib/gloo/core/it.rb