Class: DocTypeChecker::TracePoint

Inherits:
Object
  • Object
show all
Defined in:
lib/doc_type_checker/trace_point.rb

Overview

DocTypeChecker::TracePoint

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeDocTypeChecker::TracePoint



9
10
11
12
13
14
# File 'lib/doc_type_checker/trace_point.rb', line 9

def initialize
  @logger = nil
  @strict = false
  @store = DocTypeChecker::Store.new
  init_trace_point
end

Instance Attribute Details

#logger=(value) ⇒ Object (writeonly)

Sets the attribute logger

Parameters:

  • value

    the value to set the attribute logger to.



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

def logger=(value)
  @logger = value
end

#strict=(value) ⇒ Object (writeonly)

Sets the attribute strict

Parameters:

  • value

    the value to set the attribute strict to.



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

def strict=(value)
  @strict = value
end

Instance Method Details

#enabled=(enabled) ⇒ TrueClass, FalseClass

Parameters:

  • enabled (TrueClass, FalseClass)

Returns:

  • (TrueClass, FalseClass)


18
19
20
# File 'lib/doc_type_checker/trace_point.rb', line 18

def enabled=(enabled)
  enabled ? @trace_point.enable : @trace_point.disable
end