Class: OpenHAB::RSpec::Mocks::SafeCaller::Builder
- Inherits:
-
Object
- Object
- OpenHAB::RSpec::Mocks::SafeCaller::Builder
- Defined in:
- lib/openhab/rspec/mocks/safe_caller.rb
Instance Method Summary collapse
- #build ⇒ Object
- #chain ⇒ Object (also: #withTimeout, #withIdentifier, #onException, #onTimeout, #withAsync)
-
#initialize(target) ⇒ Builder
constructor
A new instance of Builder.
Constructor Details
#initialize(target) ⇒ Builder
Returns a new instance of Builder.
15 16 17 |
# File 'lib/openhab/rspec/mocks/safe_caller.rb', line 15 def initialize(target) @target = target end |
Instance Method Details
#build ⇒ Object
19 20 21 |
# File 'lib/openhab/rspec/mocks/safe_caller.rb', line 19 def build @target end |
#chain ⇒ Object Also known as: withTimeout, withIdentifier, onException, onTimeout, withAsync
23 24 25 |
# File 'lib/openhab/rspec/mocks/safe_caller.rb', line 23 def chain(*) self end |