diff options
author | Austin Ziegler <austin@zieglers.ca> | 2021-12-23 11:02:38 -0500 |
---|---|---|
committer | Austin Ziegler <austin@zieglers.ca> | 2022-07-04 20:26:10 -0400 |
commit | 5da19290c4b33f579f3b176192b7b15c151bdd00 (patch) | |
tree | 350582ea634e538b3727376132ebe69c8688b466 /lib/diff/lcs | |
parent | 22303f04b44d97455b5c862176d2d93c02a2b2ba (diff) | |
download | diff-lcs-5da19290c4b33f579f3b176192b7b15c151bdd00.tar.gz |
Fix :yields: directive for rdoc
Diffstat (limited to 'lib/diff/lcs')
-rw-r--r-- | lib/diff/lcs/callbacks.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/diff/lcs/callbacks.rb b/lib/diff/lcs/callbacks.rb index c075327..54b3686 100644 --- a/lib/diff/lcs/callbacks.rb +++ b/lib/diff/lcs/callbacks.rb @@ -107,7 +107,7 @@ class Diff::LCS::DiffCallbacks # Returns the difference set collected during the diff process. attr_reader :diffs - def initialize # :yields self: + def initialize # :yields: self @hunk = [] @diffs = [] @@ -302,7 +302,7 @@ class Diff::LCS::SDiffCallbacks # Returns the difference set collected during the diff process. attr_reader :diffs - def initialize #:yields self: + def initialize #:yields: self @diffs = [] yield self if block_given? end |