Sha256: ac405d36d4d77d9fab0be653f31e423bdbb880462a4f8b7e337d8acc8be48345

Contents?: true

Size: 247 Bytes

Versions: 12

Compression:

Stored size: 247 Bytes

Contents

# frozen_string_literal: true

class Template
  class Node
    class TextPart < Node
      def initialize(text)
        @text = text
      end

      def evaluate(**_args)
        ::Code::Object::String.new(@text.to_s)
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
template-ruby-1.1.2 lib/template/node/text_part.rb
template-ruby-1.1.0 lib/template/node/text_part.rb
template-ruby-1.0.0 lib/template/node/text_part.rb
template-ruby-0.7.3 lib/template/node/text_part.rb
template-ruby-0.7.2 lib/template/node/text_part.rb
template-ruby-0.7.0 lib/template/node/text_part.rb
template-ruby-0.6.9 lib/template/node/text_part.rb
template-ruby-0.6.8 lib/template/node/text_part.rb
template-ruby-0.6.7 lib/template/node/text_part.rb
template-ruby-0.6.6 lib/template/node/text_part.rb
template-ruby-0.6.5 lib/template/node/text_part.rb
template-ruby-0.6.4 lib/template/node/text_part.rb