Class: Peck::Should::Proxy
Direct Known Subclasses
Instance Attribute Summary collapse
-
#block ⇒ Object
readonly
Returns the value of attribute block.
-
#context ⇒ Object
readonly
Returns the value of attribute context.
-
#negated ⇒ Object
Returns the value of attribute negated.
Instance Method Summary collapse
-
#initialize(context, &block) ⇒ Proxy
constructor
A new instance of Proxy.
Constructor Details
#initialize(context, &block) ⇒ Proxy
Returns a new instance of Proxy.
11 12 13 14 15 |
# File 'lib/peck/expectations.rb', line 11 def initialize(context, &block) @context = context @block = block @negated = false end |
Instance Attribute Details
#block ⇒ Object (readonly)
Returns the value of attribute block.
9 10 11 |
# File 'lib/peck/expectations.rb', line 9 def block @block end |
#context ⇒ Object (readonly)
Returns the value of attribute context.
9 10 11 |
# File 'lib/peck/expectations.rb', line 9 def context @context end |
#negated ⇒ Object
Returns the value of attribute negated.
8 9 10 |
# File 'lib/peck/expectations.rb', line 8 def negated @negated end |