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 17, 2021
1 parent cd32a52 commit 38d13b3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 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
4 changes: 2 additions & 2 deletions lib/synvert/core/rewriter/instance.rb
Expand Up @@ -165,7 +165,7 @@ def within_node(rules, &block)
Rewriter::WithinScope.new(self, rules, { recursive: true }, &block).process
end

alias_method :with_node, :within_node
alias with_node within_node

# Parse within_direct_node dsl, it creates a [Synvert::Core::Rewriter::WithinScope] to find direct matching ast nodes,
# then continue operating on each matching ast node.
Expand All @@ -176,7 +176,7 @@ def within_direct_node(rules, &block)
Rewriter::WithinScope.new(self, rules, { recursive: false }, &block).process
end

alias_method :with_direct_node, :within_direct_node
alias with_direct_node within_direct_node

# Parse goto_node dsl, it creates a [Synvert::Core::Rewriter::GotoScope] to go to a child node,
# then continue operating on the child node.
Expand Down

0 comments on commit 38d13b3

Please sign in to comment.