Class: DirectInject::Templates::Image

Inherits:
Abstract
  • Object
show all
Defined in:
lib/direct_inject/templates/image.rb

Instance Attribute Summary

Attributes inherited from Abstract

#options, #source

Instance Method Summary collapse

Methods inherited from Abstract

#initialize, render, #tag_options

Constructor Details

This class inherits a constructor from DirectInject::Templates::Abstract

Instance Method Details

#renderObject



6
7
8
# File 'lib/direct_inject/templates/image.rb', line 6

def render
  tagz { img_ tag_options( options ).merge( :src => source ) }
end