summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Mair <jrmair@gmail.com>2018-01-08 12:27:17 +0100
committerGitHub <noreply@github.com>2018-01-08 12:27:17 +0100
commit3f0ec2a091e173d2ebe5ad82c18c82783f82038f (patch)
treeafee00130e41205bb2e7dd80c9b9fee3b5936228
parentdffc8123a7efd728f766229c5b5f2c5b1576d2ee (diff)
parent36e0c21a6c04d8ed49f35cf4a94f3caf548d31c6 (diff)
downloadpry-3f0ec2a091e173d2ebe5ad82c18c82783f82038f.tar.gz
Merge pull request #1735 from olleolleolle/fix/yard-warnings-for-see-directive
Avoid YARD RedundantBraces warnings
-rw-r--r--lib/pry/command.rb4
-rw-r--r--lib/pry/hooks.rb2
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/pry/command.rb b/lib/pry/command.rb
index 733044aa..94a47c8a 100644
--- a/lib/pry/command.rb
+++ b/lib/pry/command.rb
@@ -169,8 +169,8 @@ class Pry
# @deprecated Replaced with {Pry::Hooks#add_hook}. Left for compatibility.
# Store hooks to be run before or after the command body.
- # @see {Pry::CommandSet#before_command}
- # @see {Pry::CommandSet#after_command}
+ # @see Pry::CommandSet#before_command
+ # @see Pry::CommandSet#after_command
def hooks
Pry.hooks
end
diff --git a/lib/pry/hooks.rb b/lib/pry/hooks.rb
index b5e2e85c..64e0d5d3 100644
--- a/lib/pry/hooks.rb
+++ b/lib/pry/hooks.rb
@@ -32,7 +32,7 @@ class Pry
#
# @param [Pry::Hooks] other The `Pry::Hooks` instance to merge
# @return [Pry:Hooks] The receiver.
- # @see {#merge}
+ # @see #merge
def merge!(other)
@hooks.merge!(other.dup.hooks) do |key, array, other_array|
temp_hash, output = {}, []