diff options
author | Abinoam P. Marques Jr <abinoam@gmail.com> | 2017-09-25 14:51:49 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-09-25 14:51:49 -0300 |
commit | 73bd6a13a479cce042ed702a4154e15d169efb3f (patch) | |
tree | e2d93d36e2d4ea7c4c243bce29b84ec014001e5e /lib/highline/compatibility.rb | |
parent | 66b8ece6560879a4e7d34dd6bd0cf20d48f3b3a7 (diff) | |
parent | b48f09dc4828b6eab3588862d53a445197f6ee26 (diff) | |
download | highline-73bd6a13a479cce042ed702a4154e15d169efb3f.tar.gz |
Merge pull request #215 from JEG2/rubocopv2.0.0.pre.develop.11
Apply Rubocop stylistic suggestions
Diffstat (limited to 'lib/highline/compatibility.rb')
-rw-r--r-- | lib/highline/compatibility.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/highline/compatibility.rb b/lib/highline/compatibility.rb index 33c889c..ee13fd6 100644 --- a/lib/highline/compatibility.rb +++ b/lib/highline/compatibility.rb @@ -4,13 +4,13 @@ unless STDIN.respond_to? :getbyte # HighLine adds #getbyte alias to #getc when #getbyte is not available. class IO # alias to #getc when #getbyte is not available - alias_method :getbyte, :getc + alias getbyte getc end # HighLine adds #getbyte alias to #getc when #getbyte is not available. class StringIO # alias to #getc when #getbyte is not available - alias_method :getbyte, :getc + alias getbyte getc end end @@ -18,6 +18,6 @@ unless "".respond_to? :each_line # HighLine adds #each_line alias to #each when each_line is not available. class String # alias to #each when each_line is not available. - alias_method :each_line, :each + alias each_line each end end |