Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Remove RUBY19 constant to avoid warning. #9

Closed
wants to merge 1 commit into from

2 participants

Sven Dahlstrand Ryan Davis
Sven Dahlstrand

When flog and flay are used together Ruby warns for setting the constant twice.

Sven Dahlstrand svendahlstrand Remove RUBY19 constant to avoid warning.
When flog and flay are used together Ruby warns for setting the constant twice.
f21858c
Ryan Davis zenspider was assigned
Ryan Davis
Owner

done. thanks!

Ryan Davis zenspider closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Aug 12, 2012
  1. Sven Dahlstrand

    Remove RUBY19 constant to avoid warning.

    svendahlstrand authored
    When flog and flay are used together Ruby warns for setting the constant twice.
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 3 deletions.
  1. +1 −3 lib/flog.rb
4 lib/flog.rb
View
@@ -4,10 +4,8 @@
require 'optparse'
class File
- RUBY19 = "<3".respond_to? :encoding
-
class << self
- alias :binread :read unless RUBY19
+ alias :binread :read unless "<3".respond_to?(:encoding)
end
end
Something went wrong with that request. Please try again.