Sha256: 6b60320f553b2e781f7cdc5a7267734ef9c68ea8a556cbb3d9d11bc0d8c0b947
Contents?: true
Size: 457 Bytes
Versions: 17
Compression:
Stored size: 457 Bytes
Contents
<% if object %> <% var = local_assigns.fetch(:var, name) %> <% method = local_assigns.fetch(:method, "add#{name.to_s.camelize}") %> <% js_object = local_assigns.fetch(:js_object, "new AmCharts.#{local_assigns.fetch(:type, name.to_s.camelize)}") %> var <%= var %> = <%= js_object %>; <% builder.render_settings(object, var.to_s) %> <%= yield(object, var) rescue nil %> <% if method %> chart.<%= method %>(<%= var %>); <% end %> <% end %>
Version data entries
17 entries across 17 versions & 1 rubygems