In Files

  • rbs-2.1.0/lib/rbs/test.rb

Class/Module Index [+]

Quicksearch

RBS::Test::ArgumentsReturn

Attributes

arguments[R]
exit_type[R]
exit_value[R]

Public Class Methods

break(arguments:) click to toggle source
 
               # File rbs-2.1.0/lib/rbs/test.rb, line 42
def self.break(arguments))
  new(arguments: arguments, exit_value: nil, exit_type: :break)
end
            
exception(arguments:, exception:) click to toggle source
 
               # File rbs-2.1.0/lib/rbs/test.rb, line 38
def self.exception(arguments,, exception))
  new(arguments: arguments, exit_value: exception, exit_type: :exception)
end
            
new(arguments:, exit_value:, exit_type:) click to toggle source
 
               # File rbs-2.1.0/lib/rbs/test.rb, line 28
def initialize(arguments,, exit_value,, exit_type))
  @arguments = arguments
  @exit_value = exit_value
  @exit_type = exit_type
end
            
return(arguments:, value:) click to toggle source
 
               # File rbs-2.1.0/lib/rbs/test.rb, line 34
def self.return(arguments,, value))
  new(arguments: arguments, exit_value: value, exit_type: :return)
end
            

Public Instance Methods

break?() click to toggle source
 
               # File rbs-2.1.0/lib/rbs/test.rb, line 64
def break?
  exit_type == :break
end
            
exception() click to toggle source
 
               # File rbs-2.1.0/lib/rbs/test.rb, line 51
def exception
  raise unless exit_type == :exception
  exit_value
end
            
exception?() click to toggle source
 
               # File rbs-2.1.0/lib/rbs/test.rb, line 60
def exception?
  exit_type == :exception
end
            
return?() click to toggle source
 
               # File rbs-2.1.0/lib/rbs/test.rb, line 56
def return?
  exit_type == :return
end
            
return_value() click to toggle source
 
               # File rbs-2.1.0/lib/rbs/test.rb, line 46
def return_value
  raise unless exit_type == :return
  exit_value
end