Sha256: c7b5a70dfca866506275e4a4da2aaf4cf920fbccf0625283b20b997b9460465d

Contents?: true

Size: 258 Bytes

Versions: 6

Compression:

Stored size: 258 Bytes

Contents

class Code
  class Node
    class String < Node
      def initialize(string)
        @string = string
      end

      def evaluate(**args)
        ::Code::Object::String.new(string.to_s)
      end

      private

      attr_reader :string
    end
  end
end

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
code-ruby-0.2.4 lib/code/node/string.rb
template-ruby-0.2.4 lib/code/node/string.rb
template-ruby-0.2.3 lib/code/node/string.rb
template-ruby-0.2.2 lib/code/node/string.rb
template-ruby-0.2.1 lib/code/node/string.rb
template-ruby-0.2.0 lib/code/node/string.rb