Module: Handlebars::Helpers
- Defined in:
- lib/handlebars/helpers/configuration.rb,
lib/handlebars/helpers.rb,
lib/handlebars/helpers/version.rb,
lib/handlebars/helpers/template.rb,
lib/handlebars/helpers/misc/noop.rb,
lib/handlebars/helpers/misc/safe.rb,
lib/handlebars/helpers/statistics.rb,
lib/handlebars/helpers/base_helper.rb,
lib/handlebars/helpers/json/as_json.rb,
lib/handlebars/helpers/comparison/eq.rb,
lib/handlebars/helpers/comparison/gt.rb,
lib/handlebars/helpers/comparison/lt.rb,
lib/handlebars/helpers/comparison/ne.rb,
lib/handlebars/helpers/comparison/or.rb,
lib/handlebars/helpers/comparison/and.rb,
lib/handlebars/helpers/comparison/gte.rb,
lib/handlebars/helpers/comparison/lte.rb,
lib/handlebars/helpers/register_helpers.rb,
lib/handlebars/helpers/string_tokenizer.rb,
lib/handlebars/helpers/code_ruby/classify.rb,
lib/handlebars/helpers/code_ruby/tableize.rb,
lib/handlebars/helpers/comparison/default.rb,
lib/handlebars/helpers/inflection/ordinal.rb,
lib/handlebars/helpers/code_ruby/demodulize.rb,
lib/handlebars/helpers/inflection/pluralize.rb,
lib/handlebars/helpers/code_ruby/foreign_key.rb,
lib/handlebars/helpers/inflection/ordinalize.rb,
lib/handlebars/helpers/inflection/singularize.rb,
lib/handlebars/helpers/string_formatting/padl.rb,
lib/handlebars/helpers/string_formatting/padr.rb,
lib/handlebars/helpers/base_safe_string_helper.rb,
lib/handlebars/helpers/code_ruby/deconstantize.rb,
lib/handlebars/helpers/string_formatting/camel.rb,
lib/handlebars/helpers/string_formatting/lamel.rb,
lib/handlebars/helpers/string_formatting/slash.rb,
lib/handlebars/helpers/string_formatting/snake.rb,
lib/handlebars/helpers/string_formatting/upcase.rb,
lib/handlebars/helpers/string_formatting/dotirize.rb,
lib/handlebars/helpers/string_formatting/downcase.rb,
lib/handlebars/helpers/string_formatting/humanize.rb,
lib/handlebars/helpers/string_formatting/surround.rb,
lib/handlebars/helpers/string_formatting/titleize.rb,
lib/handlebars/helpers/string_formatting/append_if.rb,
lib/handlebars/helpers/string_formatting/dasherize.rb,
lib/handlebars/helpers/string_formatting/format_as.rb,
lib/handlebars/helpers/string_formatting/pluserize.rb,
lib/handlebars/helpers/string_formatting/back_slash.rb,
lib/handlebars/helpers/string_formatting/prepend_if.rb,
lib/handlebars/helpers/code_javascript/as_javascript.rb,
lib/handlebars/helpers/string_formatting/constantize.rb,
lib/handlebars/helpers/string_formatting/singularize.rb,
lib/handlebars/helpers/string_formatting/surround_if.rb,
lib/handlebars/helpers/inflection/pluralize_by_number.rb,
lib/handlebars/helpers/string_formatting/double_colon.rb
Overview
Configuration access for Handlebars/Helpers
Defined Under Namespace
Modules: CodeJavascript, CodeRuby, Comparison, Inflection, Json, Misc, StringFormatting
Classes: BaseHelper, BaseSafeStringHelper, Configuration, Error, RegisterHelpers, StringTokenizer, Template
Constant Summary
collapse
- VERSION =
'0.0.87'
- HANDLER_COUNT =
44
- CATEGORY_COUNT =
7
Class Attribute Summary collapse
Class Method Summary
collapse
Class Attribute Details
.configuration ⇒ Object
13
14
15
|
# File 'lib/handlebars/helpers/configuration.rb', line 13
def self.configuration
@configuration ||= Configuration.new
end
|
Class Method Details
21
22
23
|
# File 'lib/handlebars/helpers/configuration.rb', line 21
def self.configure
yield(configuration)
end
|
.reset ⇒ Object
17
18
19
|
# File 'lib/handlebars/helpers/configuration.rb', line 17
def self.reset
@configuration = Configuration.new
end
|