module IndexFor

Constants

VERSION

Public Class Methods

format(key, &block) click to toggle source
# File lib/index_for.rb, line 107
def self.format key, &block
  formatters[key] = block
end
setup() { |self| ... } click to toggle source

Yield self for configuration block:

IndexFor.setup do |config|
  config.index_for_tag = :div
end
# File lib/index_for.rb, line 101
def self.setup
  yield self
end