Module: DocTypeChecker::Configuration

Included in:
DocTypeChecker
Defined in:
lib/doc_type_checker/configuration.rb

Overview

DocTypeChecker::Configuration

Instance Method Summary collapse

Instance Method Details

#configure {|_self| ... } ⇒ Object

Yields:

  • (_self)

Yield Parameters:


6
7
8
9
# File 'lib/doc_type_checker/configuration.rb', line 6

def configure
  @trace_point = DocTypeChecker::TracePoint.new
  yield self
end

#enabled=(enabled) ⇒ TrueClass, FalseClass

Parameters:

  • enabled (TrueClass, FalseClass)

Returns:

  • (TrueClass, FalseClass)

13
14
15
# File 'lib/doc_type_checker/configuration.rb', line 13

def enabled=(enabled)
  @trace_point.enabled = enabled
end

#logger=(logger) ⇒ Logger, NilClass

Parameters:

  • logger (Logger, NilClass)

Returns:

  • (Logger, NilClass)

25
26
27
# File 'lib/doc_type_checker/configuration.rb', line 25

def logger=(logger)
  @trace_point.logger = logger
end

#strict=(strict) ⇒ TrueClass, FalseClass

Parameters:

  • strict (TrueClass, FalseClass)

Returns:

  • (TrueClass, FalseClass)

19
20
21
# File 'lib/doc_type_checker/configuration.rb', line 19

def strict=(strict)
  @trace_point.strict = strict
end

#yard_run_arguments=(arguments) ⇒ TrueClass, FalseClass

Parameters:

  • arguments (Array)

Returns:

  • (TrueClass, FalseClass)

31
32
33
# File 'lib/doc_type_checker/configuration.rb', line 31

def yard_run_arguments=(arguments)
  YARD::CLI::CommandParser.run(*arguments)
end