Class: Inch::Config::Base::Evaluation
- Inherits:
-
Object
- Object
- Inch::Config::Base::Evaluation
- Defined in:
- lib/inch/config/base.rb
Instance Method Summary collapse
- #grade(symbol, &block) ⇒ Object
- #priority(symbol, &block) ⇒ Object
- #schema(constant_name, &block) ⇒ Object
- #update(&block) ⇒ Object
Instance Method Details
#grade(symbol, &block) ⇒ Object
37 38 39 |
# File 'lib/inch/config/base.rb', line 37 def grade(symbol, &block) ::Inch::Evaluation::Grade.grade(symbol, &block) end |
#priority(symbol, &block) ⇒ Object
41 42 43 |
# File 'lib/inch/config/base.rb', line 41 def priority(symbol, &block) ::Inch::Evaluation::PriorityRange.priority_range(symbol, &block) end |
#schema(constant_name, &block) ⇒ Object
45 46 47 48 |
# File 'lib/inch/config/base.rb', line 45 def schema(constant_name, &block) constant = ::Inch::Evaluation::Proxy.const_get(constant_name) constant.criteria(&block) end |
#update(&block) ⇒ Object
33 34 35 |
# File 'lib/inch/config/base.rb', line 33 def update(&block) instance_eval(&block) end |