Module: Expectr::Interface

Included in:
Child, Lambda
Defined in:
lib/expectr/error.rb,
lib/expectr/interface.rb

Defined Under Namespace

Classes: NotKillableError

Instance Method Summary collapse

Instance Method Details

#interact_threadObject

Public: Return a Thread which does nothing, representing an interface with no functional interact environment available.

Returns a Thread.



7
8
9
# File 'lib/expectr/interface.rb', line 7

def interact_thread
  Thread.new { }
end

#prepare_interact_interfaceObject

Public: Return an empty Hash representing a case where no action needed to be taken in order to prepare the environment for interact mode.

Returns an empty Hash.



15
16
17
# File 'lib/expectr/interface.rb', line 15

def prepare_interact_interface
  {}
end