Class: Inch::Config::Base::Evaluation

Inherits:
Object
  • Object
show all
Defined in:
lib/inch/config/base.rb

Instance Method Summary collapse

Instance Method Details

#grade(symbol, &block) ⇒ Object



36
37
38
# File 'lib/inch/config/base.rb', line 36

def grade(symbol, &block)
  ::Inch::Evaluation::Grade.grade(symbol, &block)
end

#priority(symbol, &block) ⇒ Object



40
41
42
# File 'lib/inch/config/base.rb', line 40

def priority(symbol, &block)
  ::Inch::Evaluation::PriorityRange.priority_range(symbol, &block)
end

#schema(constant_name, &block) ⇒ Object



44
45
46
47
# File 'lib/inch/config/base.rb', line 44

def schema(constant_name, &block)
  constant = ::Inch::Evaluation::Proxy.const_get(constant_name)
  constant.criteria(&block)
end

#update(&block) ⇒ Object



32
33
34
# File 'lib/inch/config/base.rb', line 32

def update(&block)
  instance_eval(&block)
end