class Inkcite::Renderer::Increment
Constants
- DEFAULT
Tip o' the hat to the most-used index variable name.
Public Instance Methods
render(tag, opt, ctx)
click to toggle source
# File lib/inkcite/renderer/increment.rb, line 5 def render tag, opt, ctx # Get the unique ID for which a counter will be incremented. # Or use the default value. id = opt[:id] || DEFAULT ctx.unique_id(id).to_s end