Class: Fictium::PostmanEvaluator
- Inherits:
-
Object
- Object
- Fictium::PostmanEvaluator
- Defined in:
- lib/fictium/evaluators/postman_evaluator.rb
Instance Attribute Summary collapse
-
#subject ⇒ Object
readonly
Returns the value of attribute subject.
Instance Method Summary collapse
- #evaluate(&block) ⇒ Object
-
#initialize(subject) ⇒ PostmanEvaluator
constructor
A new instance of PostmanEvaluator.
Constructor Details
#initialize(subject) ⇒ PostmanEvaluator
Returns a new instance of PostmanEvaluator.
7 8 9 |
# File 'lib/fictium/evaluators/postman_evaluator.rb', line 7 def initialize(subject) @subject = subject end |
Instance Attribute Details
#subject ⇒ Object (readonly)
Returns the value of attribute subject.
3 4 5 |
# File 'lib/fictium/evaluators/postman_evaluator.rb', line 3 def subject @subject end |
Instance Method Details
#evaluate(&block) ⇒ Object
11 12 13 |
# File 'lib/fictium/evaluators/postman_evaluator.rb', line 11 def evaluate(&block) instance_eval(&block) end |