Skip to content

Commit

Permalink
Rename ReplaceAttributesWithMethods AttrToMethods
Browse files Browse the repository at this point in the history
  • Loading branch information
amomchilov committed Jun 10, 2024
1 parent 7cfe690 commit e9b5a36
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/rbi.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
require "rbi/rewriters/nest_non_public_methods"
require "rbi/rewriters/group_nodes"
require "rbi/rewriters/remove_known_definitions"
require "rbi/rewriters/replace_attributes_with_methods"
require "rbi/rewriters/attr_to_methods"
require "rbi/rewriters/sort_nodes"
require "rbi/parser"
require "rbi/printer"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ module TempHelpers
end

module Rewriters
class ReplaceAttributesWithMethods < Visitor
class AttrToMethods < Visitor
extend T::Sig
include TempHelpers

Expand Down Expand Up @@ -147,7 +147,7 @@ class Tree

sig { void }
def replace_attributes_with_methods!
visitor = Rewriters::ReplaceAttributesWithMethods.new
visitor = Rewriters::AttrToMethods.new
visitor.visit(self)
end
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
require "test_helper"

module RBI
class ReplaceAttributesWithMethods < Minitest::Test
class AttrToMethodsTest < Minitest::Test
def test_replaces_attr_reader_with_method
rbi = Parser.parse_string(<<~RBI)
# Lorum ipsum...
Expand Down

0 comments on commit e9b5a36

Please sign in to comment.