Class: Kaisoku::RuntimeContext
- Inherits:
-
Object
- Object
- Kaisoku::RuntimeContext
- Defined in:
- lib/kaisoku/runtime_context.rb
Instance Attribute Summary collapse
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
- #adapter ⇒ Object
- #configuration ⇒ Object
-
#initialize(options) ⇒ RuntimeContext
constructor
A new instance of RuntimeContext.
- #test_map ⇒ Object
Constructor Details
#initialize(options) ⇒ RuntimeContext
Returns a new instance of RuntimeContext.
7 8 9 |
# File 'lib/kaisoku/runtime_context.rb', line 7 def initialize() @options = end |
Instance Attribute Details
#options ⇒ Object (readonly)
Returns the value of attribute options.
5 6 7 |
# File 'lib/kaisoku/runtime_context.rb', line 5 def @options end |
Instance Method Details
#adapter ⇒ Object
24 25 26 |
# File 'lib/kaisoku/runtime_context.rb', line 24 def adapter @adapter ||= Adapters::Factory.build([:adapter], configuration: configuration) end |
#configuration ⇒ Object
11 12 13 14 15 16 17 18 |
# File 'lib/kaisoku/runtime_context.rb', line 11 def configuration @configuration ||= Configuration.new( project_root: [:project_root], map_path: [:map_path], adapter: [:adapter], method_level_threshold: [:method_level_threshold] || 20 ) end |