Class: RspecSprint::Fixers::LetItBe::Candidate
- Inherits:
-
Struct
- Object
- Struct
- RspecSprint::Fixers::LetItBe::Candidate
- Defined in:
- lib/rspec_sprint/fixers/let_it_be/detector.rb
Overview
1 件の autocorrect 候補。let_name / factory_name は Symbol。kind は :let or :let_bang。
Instance Attribute Summary collapse
-
#factory_name ⇒ Object
Returns the value of attribute factory_name.
-
#file_path ⇒ Object
Returns the value of attribute file_path.
-
#kind ⇒ Object
Returns the value of attribute kind.
-
#let_name ⇒ Object
Returns the value of attribute let_name.
-
#line ⇒ Object
Returns the value of attribute line.
Instance Method Summary collapse
-
#initialize(let_name:, factory_name:, line:, file_path:, kind: :let) ⇒ Candidate
constructor
A new instance of Candidate.
Constructor Details
#initialize(let_name:, factory_name:, line:, file_path:, kind: :let) ⇒ Candidate
Returns a new instance of Candidate.
11 12 13 |
# File 'lib/rspec_sprint/fixers/let_it_be/detector.rb', line 11 def initialize(let_name:, factory_name:, line:, file_path:, kind: :let) super end |
Instance Attribute Details
#factory_name ⇒ Object
Returns the value of attribute factory_name
9 10 11 |
# File 'lib/rspec_sprint/fixers/let_it_be/detector.rb', line 9 def factory_name @factory_name end |
#file_path ⇒ Object
Returns the value of attribute file_path
9 10 11 |
# File 'lib/rspec_sprint/fixers/let_it_be/detector.rb', line 9 def file_path @file_path end |
#kind ⇒ Object
Returns the value of attribute kind
9 10 11 |
# File 'lib/rspec_sprint/fixers/let_it_be/detector.rb', line 9 def kind @kind end |
#let_name ⇒ Object
Returns the value of attribute let_name
9 10 11 |
# File 'lib/rspec_sprint/fixers/let_it_be/detector.rb', line 9 def let_name @let_name end |
#line ⇒ Object
Returns the value of attribute line
9 10 11 |
# File 'lib/rspec_sprint/fixers/let_it_be/detector.rb', line 9 def line @line end |