Class: Runaround::MethodCall

Inherits:
Struct
  • Object
show all
Defined in:
lib/runaround/method_call.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#argsObject

Returns the value of attribute args

Returns:

  • (Object)

    the current value of args



3
4
5
# File 'lib/runaround/method_call.rb', line 3

def args
  @args
end

#blockObject

Returns the value of attribute block

Returns:

  • (Object)

    the current value of block



3
4
5
# File 'lib/runaround/method_call.rb', line 3

def block
  @block
end

#methodObject

Returns the value of attribute method

Returns:

  • (Object)

    the current value of method



3
4
5
# File 'lib/runaround/method_call.rb', line 3

def method
  @method
end

#optsObject

Returns the value of attribute opts

Returns:

  • (Object)

    the current value of opts



3
4
5
# File 'lib/runaround/method_call.rb', line 3

def opts
  @opts
end

#return_valueObject

Returns the value of attribute return_value

Returns:

  • (Object)

    the current value of return_value



3
4
5
# File 'lib/runaround/method_call.rb', line 3

def return_value
  @return_value
end

Instance Method Details

#argsoptsObject



8
9
10
11
12
# File 'lib/runaround/method_call.rb', line 8

def argsopts
  argsopts = args ? args.dup : []
  argsopts << opts if opts && !opts.empty?
  argsopts
end

#run_methodObject



4
5
6
# File 'lib/runaround/method_call.rb', line 4

def run_method
  Fiber.yield
end