Class: Bookworm::InferRule
- Inherits:
-
Object
- Object
- Bookworm::InferRule
- Extended by:
- RuboCop::NodePattern::Macros
- Defined in:
- lib/bookworm/infer_base_classes.rb
Instance Method Summary collapse
- #default_output ⇒ Object
-
#initialize(metadata) ⇒ InferRule
constructor
A new instance of InferRule.
- #output ⇒ Object
- #to_a ⇒ Object
- #to_h ⇒ Object
Constructor Details
#initialize(metadata) ⇒ InferRule
35 36 37 38 |
# File 'lib/bookworm/infer_base_classes.rb', line 35 def initialize() = output end |
Instance Method Details
#default_output ⇒ Object
48 49 50 |
# File 'lib/bookworm/infer_base_classes.rb', line 48 def default_output :to_a end |
#output ⇒ Object
52 53 54 |
# File 'lib/bookworm/infer_base_classes.rb', line 52 def output send(default_output) end |
#to_a ⇒ Object
40 41 42 |
# File 'lib/bookworm/infer_base_classes.rb', line 40 def to_a [] end |
#to_h ⇒ Object
44 45 46 |
# File 'lib/bookworm/infer_base_classes.rb', line 44 def to_h {} end |