Sha256: 5adfe72dd357f13a4664377236629ff79f63031494eae09be7a8740bc3b7424b

Contents?: true

Size: 252 Bytes

Versions: 1

Compression:

Stored size: 252 Bytes

Contents

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

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

      private

      attr_reader :string
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
template-ruby-0.1.0 lib/code/node/string.rb