Class: Yardcheck::MethodCall
- Inherits:
-
Object
- Object
- Yardcheck::MethodCall
show all
- Includes:
- AbstractType
- Defined in:
- lib/yardcheck/method_call.rb
Defined Under Namespace
Classes: Jump, Raise, Return
Class Method Summary
collapse
Instance Method Summary
collapse
Class Method Details
.process(params:, **attributes) ⇒ Object
13
14
15
16
17
18
19
20
|
# File 'lib/yardcheck/method_call.rb', line 13
def self.process(params:, **attributes)
params =
params.map do |key, value|
[key, TestValue.process(value)]
end.to_h
new(params: params, **attributes)
end
|
Instance Method Details
#example_id ⇒ Object
26
27
28
|
# File 'lib/yardcheck/method_call.rb', line 26
def example_id
example_metadata.fetch(:id)
end
|
#example_location ⇒ Object
22
23
24
|
# File 'lib/yardcheck/method_call.rb', line 22
def example_location
example_metadata.fetch(:location)
end
|
#initialize? ⇒ Boolean
34
35
36
|
# File 'lib/yardcheck/method_call.rb', line 34
def initialize?
selector == :initialize && scope == :instance
end
|
#method_identifier ⇒ Object
30
31
32
|
# File 'lib/yardcheck/method_call.rb', line 30
def method_identifier
[namespace, selector, scope]
end
|
#raise? ⇒ Boolean
38
39
40
|
# File 'lib/yardcheck/method_call.rb', line 38
def raise?
false
end
|
#return? ⇒ Boolean
42
43
44
|
# File 'lib/yardcheck/method_call.rb', line 42
def return?
false
end
|