Class: Pageflow::BackgroundImageHelper::Div
- Inherits:
-
Object
- Object
- Pageflow::BackgroundImageHelper::Div
- Defined in:
- app/helpers/pageflow/background_image_helper.rb
Direct Known Subclasses
Constant Summary collapse
- FILE_TYPE_CSS_CLASS_PREFIXES =
{ 'image_file' => 'image', 'video_file' => 'video_poster', }
Instance Attribute Summary collapse
-
#configuration ⇒ Object
readonly
Returns the value of attribute configuration.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
-
#property_base_name ⇒ Object
readonly
Returns the value of attribute property_base_name.
Instance Method Summary collapse
-
#initialize(template, configuration, property_base_name, options) ⇒ Div
constructor
A new instance of Div.
- #render ⇒ Object
Constructor Details
#initialize(template, configuration, property_base_name, options) ⇒ Div
Returns a new instance of Div.
34 35 36 37 38 39 |
# File 'app/helpers/pageflow/background_image_helper.rb', line 34 def initialize(template, configuration, property_base_name, ) @template = template @configuration = configuration @property_base_name = property_base_name @options = end |
Instance Attribute Details
#configuration ⇒ Object (readonly)
Returns the value of attribute configuration.
30 31 32 |
# File 'app/helpers/pageflow/background_image_helper.rb', line 30 def configuration @configuration end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
30 31 32 |
# File 'app/helpers/pageflow/background_image_helper.rb', line 30 def @options end |
#property_base_name ⇒ Object (readonly)
Returns the value of attribute property_base_name.
30 31 32 |
# File 'app/helpers/pageflow/background_image_helper.rb', line 30 def property_base_name @property_base_name end |
Instance Method Details
#render ⇒ Object
41 42 43 |
# File 'app/helpers/pageflow/background_image_helper.rb', line 41 def render content_tag(:div, '', :class => css_class, :style => inline_style, :data => data_attributes) end |