Skip to content

Commit

Permalink
Auto corrected by following Lint Ruby Style/Alias
Browse files Browse the repository at this point in the history
  • Loading branch information
Awesome Code committed Jan 9, 2021
1 parent 6f35b6f commit 5d8fda8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/synvert/core/rewriter.rb
Expand Up @@ -218,7 +218,7 @@ def within_files(file_pattern, options={}, &block)
end

# Parse within_file dsl, it finds a specifiled file.
alias_method :within_file, :within_files
alias within_file within_files

# Parses add_file dsl, it adds a new file.
#
Expand Down
2 changes: 1 addition & 1 deletion lib/synvert/core/rewriter/instance.rb
Expand Up @@ -174,7 +174,7 @@ def goto_node(child_node_name, &block)
Rewriter::GotoScope.new(self, child_node_name, &block).process
end

alias_method :with_node, :within_node
alias with_node within_node

# Parse if_exist_node dsl, it creates a [Synvert::Core::Rewriter::IfExistCondition] to check
# if matching nodes exist in the child nodes, if so, then continue operating on each matching ast node.
Expand Down

0 comments on commit 5d8fda8

Please sign in to comment.