class Bytewise::Ast::Chunk

This represents raw text (e.g HTML or CSS)

Attributes

chunk[R]

Public Class Methods

new(chunk) click to toggle source
# File lib/brace_markup/ast/chunk.rb, line 9
def initialize(chunk)
  @chunk = chunk
end

Public Instance Methods

<<(chunk) click to toggle source
# File lib/brace_markup/ast/chunk.rb, line 13
def <<(chunk)
  if chunk.is_a? String
    @chunk += chunk
  end
end
render(*args) click to toggle source
# File lib/brace_markup/ast/chunk.rb, line 23
def render(*args)
  to_s
end
to_s() click to toggle source
# File lib/brace_markup/ast/chunk.rb, line 19
def to_s
  @chunk
end