Class: RBS::Test::ArgumentsReturn
Relationships & Source Files | |
Super Chains via Extension / Inclusion / Inheritance | |
Instance Chain:
self,
Guaranteed::Inspect
|
|
Inherits: | Object |
Defined in: | lib/rbs/test.rb |
Constant Summary
Guaranteed::Inspect
- Included
Class Method Summary
Instance Attribute Summary
- #arguments readonly
- #break? ⇒ Boolean readonly
- #exception? ⇒ Boolean readonly
- #exit_type readonly
- #exit_value readonly
- #return? ⇒ Boolean readonly
Instance Method Summary
Constructor Details
.new(arguments:, exit_value:, exit_type:) ⇒ ArgumentsReturn
# File 'lib/rbs/test.rb', line 33
def initialize(arguments:, exit_value:, exit_type:) @arguments = arguments @exit_value = exit_value @exit_type = exit_type end
Class Method Details
.break(arguments:)
[ GitHub ].exception(arguments:, exception:)
[ GitHub ].return(arguments:, value:)
[ GitHub ]Instance Attribute Details
#arguments (readonly)
[ GitHub ]# File 'lib/rbs/test.rb', line 29
attr_reader :arguments
#break? ⇒ Boolean
(readonly)
[ GitHub ]
# File 'lib/rbs/test.rb', line 69
def break? exit_type == :break end
#exception? ⇒ Boolean
(readonly)
[ GitHub ]
#exit_type (readonly)
[ GitHub ]# File 'lib/rbs/test.rb', line 31
attr_reader :exit_type
#exit_value (readonly)
[ GitHub ]# File 'lib/rbs/test.rb', line 30
attr_reader :exit_value
#return? ⇒ Boolean
(readonly)
[ GitHub ]
# File 'lib/rbs/test.rb', line 61
def return? exit_type == :return end
Instance Method Details
#exception (readonly)
[ GitHub ]# File 'lib/rbs/test.rb', line 56
def exception raise unless exit_type == :exception exit_value end
#return_value
[ GitHub ]# File 'lib/rbs/test.rb', line 51
def return_value raise unless exit_type == :return exit_value end