Module: Rjax
- Defined in:
- lib/rjax.rb,
lib/rjax/errors.rb,
lib/rjax/version.rb
Defined Under Namespace
Classes: BaseError, Config, InvalidConfigurationError, PartialMissingError, Resolver
Constant Summary collapse
- VERSION =
"0.1.1"
Class Method Summary collapse
Class Method Details
.config(&block) ⇒ Object
9 10 11 12 13 14 15 16 17 |
# File 'lib/rjax.rb', line 9 def self.config(&block) @config ||= ::Rjax::Config.new if block_given? yield(@config) @config.validate! else @config end end |