Class: GH::Parallel::Dummy

Inherits:
BasicObject
Defined in:
lib/gh/parallel.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(*args) ⇒ Object



12
13
14
15
# File 'lib/gh/parallel.rb', line 12

def method_missing(*args)
  ::Kernel.raise ::RuntimeError, "response not yet loaded" if __delegate__.nil?
  __delegate__.__send__(*args)
end

Instance Attribute Details

#__delegate__Object

Returns the value of attribute __delegate__.



11
12
13
# File 'lib/gh/parallel.rb', line 11

def __delegate__
  @__delegate__
end