class Plate::ImageNode

Attributes

src[RW]

Public Class Methods

new(src, attributes) click to toggle source
# File lib/plate/nodes.rb, line 98
def initialize(src, attributes)
  self.src = src
  self.attributes = attributes
end

Public Instance Methods

compile(compiler, parent = nil) click to toggle source
# File lib/plate/compiler.rb, line 248
def compile(compiler, parent = nil)
  attr = compile_attributes(compiler)
  "<img src=\"#{src.compile(compiler)}\"#{attr} />"
end
inspect() click to toggle source
# File lib/plate/nodes.rb, line 103
def inspect
  inspect_with([src])
end