Module: Sloprb
- Defined in:
- lib/sloprb/version.rb,
lib/sloprb.rb,
lib/sloprb/parser.rb,
lib/sloprb/generator.rb,
lib/sloprb/typoeater.rb,
lib/sloprb/transformer.rb,
lib/sloprb/configuration.rb
Overview
:nodoc:
Defined Under Namespace
Modules: Generator, Parser, Transformer, Typoeater Classes: Configuration
Constant Summary collapse
- VERSION =
"0.1.1"
Class Attribute Summary collapse
-
.configuration ⇒ Object
Returns the value of attribute configuration.
Class Method Summary collapse
Class Attribute Details
.configuration ⇒ Object
Returns the value of attribute configuration.
14 15 16 |
# File 'lib/sloprb.rb', line 14 def configuration @configuration end |
Class Method Details
.register_hook ⇒ Object
21 22 23 24 25 26 |
# File 'lib/sloprb.rb', line 21 def register_hook require "require-hooks/setup" RequireHooks.source_transform do |path, source| Transformer.call(path, source) end end |
.setup(env = ENV) ⇒ Object
16 17 18 19 |
# File 'lib/sloprb.rb', line 16 def setup(env = ENV) @configuration = Configuration.new(env) register_hook end |