Class: Yardcheck::MethodCall
- Inherits:
-
Object
- Object
- Yardcheck::MethodCall
- Defined in:
- lib/yardcheck/method_call.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.process(params:, return_value:, **attributes) ⇒ Object
15 16 17 18 19 20 21 22 23 24 |
# File 'lib/yardcheck/method_call.rb', line 15 def self.process(params:, return_value:, **attributes) params = params.map do |key, value| [key, TestValue.process(value)] end.to_h return_value = TestValue.process(return_value) new(params: params, return_value: return_value, **attributes) end |
Instance Method Details
#initialize? ⇒ Boolean
30 31 32 |
# File 'lib/yardcheck/method_call.rb', line 30 def initialize? selector == :initialize && scope == :instance end |
#method_identifier ⇒ Object
26 27 28 |
# File 'lib/yardcheck/method_call.rb', line 26 def method_identifier [namespace, selector, scope] end |
#raised? ⇒ Boolean
34 35 36 |
# File 'lib/yardcheck/method_call.rb', line 34 def raised? error_raised end |