Sha256: 241db4d35cb067be234b41fba0bf087129d1883ccdf8c5221c11b8c530397ea8

Contents?: true

Size: 208 Bytes

Versions: 12

Compression:

Stored size: 208 Bytes

Contents

class Template
  class Node
    class TextPart
      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 & 2 rubygems

Version Path
template-ruby-0.4.0 lib/template/node/text_part.rb
code-ruby-0.4.0 lib/template/node/text_part.rb
template-ruby-0.3.1 lib/template/node/text_part.rb
code-ruby-0.3.1 lib/template/node/text_part.rb
template-ruby-0.3.0 lib/template/node/text_part.rb
code-ruby-0.3.0 lib/template/node/text_part.rb
code-ruby-0.2.4 lib/template/node/text_part.rb
template-ruby-0.2.4 lib/template/node/text_part.rb
template-ruby-0.2.3 lib/template/node/text_part.rb
template-ruby-0.2.2 lib/template/node/text_part.rb
template-ruby-0.2.1 lib/template/node/text_part.rb
template-ruby-0.2.0 lib/template/node/text_part.rb