Class: OpenHAB::RSpec::Mocks::SafeCaller::Builder

Inherits:
Object
  • Object
show all
Defined in:
lib/openhab/rspec/mocks/safe_caller.rb

Instance Method Summary collapse

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

#buildObject



19
20
21
# File 'lib/openhab/rspec/mocks/safe_caller.rb', line 19

def build
  @target
end

#chainObject 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