Class: Peck::Should::Proxy

Inherits:
Object show all
Defined in:
lib/peck/expectations.rb

Direct Known Subclasses

Specification

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#blockObject (readonly)

Returns the value of attribute block.



9
10
11
# File 'lib/peck/expectations.rb', line 9

def block
  @block
end

#contextObject (readonly)

Returns the value of attribute context.



9
10
11
# File 'lib/peck/expectations.rb', line 9

def context
  @context
end

#negatedObject

Returns the value of attribute negated.



8
9
10
# File 'lib/peck/expectations.rb', line 8

def negated
  @negated
end