Class: Interview::ImageLightBox

Inherits:
Control
  • Object
show all
Defined in:
lib/interview/image_light_box.rb

Instance Attribute Summary

Attributes inherited from Control

#parent

Instance Method Summary collapse

Methods inherited from Control

#ancestors, build, definition, #find_attribute, #find_attribute!, inherited, #initialize, #set_attributes, #set_defaults

Constructor Details

This class inherits a constructor from Interview::Control

Instance Method Details

#renderObject



4
5
6
7
8
9
10
11
12
13
14
15
16
# File 'lib/interview/image_light_box.rb', line 4

def render
  html = Builder::XmlMarkup.new
  html.div id: "blueimp-gallery", class: "blueimp-gallery" do
	  html.div '', class: "slides"
	  html.h3 '', class: "title"
	  html.a '', class: "prev"
	  html.a '', class: "next"
	  html.a '×', class: "close"
	  html.a '', class: "play-pause"
	  html.ol '', class: "indicator"
	end
  return html.target!
end