class Lucid::Context

Public Class Methods

default() click to toggle source
# File lib/lucid/context.rb, line 3
def self.default
  new
end
new(user_options = {}) click to toggle source
# File lib/lucid/context.rb, line 12
def initialize(user_options = {})
  @options = default_options.merge(user_options)
end
parse(argument) click to toggle source
# File lib/lucid/context.rb, line 7
def self.parse(argument)
  return new(argument) if argument.is_a?(Hash)
  argument
end

Public Instance Methods

autoload_code_paths() click to toggle source
# File lib/lucid/context.rb, line 36
def autoload_code_paths
  @options[:autoload_code_paths]
end
dry_run?() click to toggle source
# File lib/lucid/context.rb, line 16
def dry_run?
  @options[:dry_run]
end
expand?() click to toggle source
# File lib/lucid/context.rb, line 28
def expand?
  @options[:expand]
end
guess?() click to toggle source
# File lib/lucid/context.rb, line 20
def guess?
  @options[:guess]
end
matcher_type() click to toggle source
# File lib/lucid/context.rb, line 40
def matcher_type
  @options[:matcher_type]
end
spec_source() click to toggle source
# File lib/lucid/context.rb, line 32
def spec_source
  @options[:spec_source]
end
strict?() click to toggle source
# File lib/lucid/context.rb, line 24
def strict?
  @options[:strict]
end

Private Instance Methods

default_options() click to toggle source
# File lib/lucid/context.rb, line 46
def default_options
  {
    :autoload_code_paths => %w(features/support features/step_definitions features/steps common steps pages)
  }
end