Class: Calagator::MappingHelper::Map
- Inherits:
-
Struct
- Object
- Struct
- Calagator::MappingHelper::Map
- Defined in:
- app/helpers/calagator/mapping_helper.rb
Instance Attribute Summary collapse
-
#context ⇒ Object
Returns the value of attribute context.
-
#items ⇒ Object
Returns the value of attribute items.
-
#options ⇒ Object
Returns the value of attribute options.
Instance Method Summary collapse
Instance Attribute Details
#context ⇒ Object
Returns the value of attribute context
33 34 35 |
# File 'app/helpers/calagator/mapping_helper.rb', line 33 def context @context end |
#items ⇒ Object
Returns the value of attribute items
33 34 35 |
# File 'app/helpers/calagator/mapping_helper.rb', line 33 def items @items end |
#options ⇒ Object
Returns the value of attribute options
33 34 35 |
# File 'app/helpers/calagator/mapping_helper.rb', line 33 def @options end |
Instance Method Details
#render ⇒ Object
34 35 36 37 38 |
# File 'app/helpers/calagator/mapping_helper.rb', line 34 def render return if locatable_items.empty? args = js_args.to_json[1...-1] # "splat" arguments by removing wrapping square brackets map_div + context.javascript_tag("map(#{args});") end |