Class: Lucid::Context
Class Method Summary collapse
Instance Method Summary collapse
- #autoload_code_paths ⇒ Object
- #dry_run? ⇒ Boolean
- #expand? ⇒ Boolean
- #guess? ⇒ Boolean
-
#initialize(user_options = {}) ⇒ Context
constructor
A new instance of Context.
- #matcher_type ⇒ Object
- #spec_source ⇒ Object
- #strict? ⇒ Boolean
Constructor Details
#initialize(user_options = {}) ⇒ Context
Returns a new instance of Context.
12 13 14 |
# File 'lib/lucid/context.rb', line 12 def initialize( = {}) @options = .merge() end |
Class Method Details
.default ⇒ Object
3 4 5 |
# File 'lib/lucid/context.rb', line 3 def self.default new end |
.parse(argument) ⇒ Object
7 8 9 10 |
# File 'lib/lucid/context.rb', line 7 def self.parse(argument) return new(argument) if argument.is_a?(Hash) argument end |
Instance Method Details
#autoload_code_paths ⇒ Object
36 37 38 |
# File 'lib/lucid/context.rb', line 36 def autoload_code_paths @options[:autoload_code_paths] end |
#dry_run? ⇒ Boolean
16 17 18 |
# File 'lib/lucid/context.rb', line 16 def dry_run? @options[:dry_run] end |
#expand? ⇒ Boolean
28 29 30 |
# File 'lib/lucid/context.rb', line 28 def @options[:expand] end |
#guess? ⇒ Boolean
20 21 22 |
# File 'lib/lucid/context.rb', line 20 def guess? @options[:guess] end |
#matcher_type ⇒ Object
40 41 42 |
# File 'lib/lucid/context.rb', line 40 def matcher_type @options[:matcher_type] end |
#spec_source ⇒ Object
32 33 34 |
# File 'lib/lucid/context.rb', line 32 def spec_source @options[:spec_source] end |
#strict? ⇒ Boolean
24 25 26 |
# File 'lib/lucid/context.rb', line 24 def strict? @options[:strict] end |