Sha256: f62a5100c9682f592a8b9bb13db430d427fb43ff9e412a0ab290cfca9e4a0a3b
Contents?: true
Size: 477 Bytes
Versions: 1
Compression:
Stored size: 477 Bytes
Contents
module Hca OPTIONS = [:escape_html, :clean_value, :custom_html_escape, :custom_clean_value, :templates_path] class << self def configure yield(config) if block_given? end def config @config ||= get_config end private def get_config Struct.new(*OPTIONS).new.tap do |config| config.escape_html = true config.clean_value = true config.templates_path = 'app/assets/javascripts' end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
hca-0.1.0 | lib/hca/configuration.rb |