Class: CB2::Stub
- Inherits:
-
Object
- Object
- CB2::Stub
- Defined in:
- lib/cb2/strategies/stub.rb
Instance Attribute Summary collapse
-
#allow ⇒ Object
Returns the value of attribute allow.
Instance Method Summary collapse
-
#initialize(options) ⇒ Stub
constructor
A new instance of Stub.
- #open? ⇒ Boolean
Constructor Details
#initialize(options) ⇒ Stub
Returns a new instance of Stub.
4 5 6 |
# File 'lib/cb2/strategies/stub.rb', line 4 def initialize() @allow = .fetch(:allow) end |
Instance Attribute Details
#allow ⇒ Object
Returns the value of attribute allow.
2 3 4 |
# File 'lib/cb2/strategies/stub.rb', line 2 def allow @allow end |
Instance Method Details
#open? ⇒ Boolean
8 9 10 |
# File 'lib/cb2/strategies/stub.rb', line 8 def open? !allow end |