Class: Fictium::PostmanEvaluator

Inherits:
Object
  • Object
show all
Defined in:
lib/fictium/evaluators/postman_evaluator.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#subjectObject (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