Class: Yamlt::Checker

Inherits:
Object
  • Object
show all
Defined in:
lib/yamlt/checker.rb,
lib/yamlt/checker/reporter.rb

Defined Under Namespace

Classes: Reporter

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(source, target, reporter = Yamlt::Checker::Reporter.new) ⇒ Checker

Returns a new instance of Checker.



11
12
13
14
15
# File 'lib/yamlt/checker.rb', line 11

def initialize(source, target, reporter = Yamlt::Checker::Reporter.new)
  @source = source
  @target = target
  @reporter = reporter
end

Class Method Details

.call(source, target, reporter = Yamlt::Checker::Reporter.new) ⇒ Object



21
22
23
# File 'lib/yamlt/checker.rb', line 21

def self.call(source, target, reporter = Yamlt::Checker::Reporter.new)
  new(source, target, reporter).()
end

Instance Method Details

#callObject



17
18
19
# File 'lib/yamlt/checker.rb', line 17

def call
  check
end