Last active
December 29, 2015 13:39
-
-
Save meatballhat/7678198 to your computer and use it in GitHub Desktop.
Ruby encoding comment mythbusters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # encoding: us-ascii | |
| puts "#{RUBY_DESCRIPTION}: #{$0} -> #{__ENCODING__}" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # encoding: utf-8 | |
| puts "#{RUBY_DESCRIPTION}: #{$0} -> #{__ENCODING__}" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # vim:fileencoding=us-ascii | |
| puts "#{RUBY_DESCRIPTION}: #{$0} -> #{__ENCODING__}" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # vim:fileencoding=utf-8 | |
| puts "#{RUBY_DESCRIPTION}: #{$0} -> #{__ENCODING__}" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| for f in *.rb ; do | |
| ruby $f | |
| done |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ruby 1.9.3p448 (2013-06-27 revision 41675) [x86_64-darwin12.4.0]: colon-style-us-ascii.rb -> US-ASCII | |
| ruby 1.9.3p448 (2013-06-27 revision 41675) [x86_64-darwin12.4.0]: colon-style-utf-8.rb -> UTF-8 | |
| ruby 1.9.3p448 (2013-06-27 revision 41675) [x86_64-darwin12.4.0]: equal-style-us-ascii.rb -> US-ASCII | |
| ruby 1.9.3p448 (2013-06-27 revision 41675) [x86_64-darwin12.4.0]: equal-style-utf-8.rb -> UTF-8 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ruby 2.0.0p247 (2013-06-27 revision 41674) [x86_64-darwin12.4.0]: colon-style-us-ascii.rb -> US-ASCII | |
| ruby 2.0.0p247 (2013-06-27 revision 41674) [x86_64-darwin12.4.0]: colon-style-utf-8.rb -> UTF-8 | |
| ruby 2.0.0p247 (2013-06-27 revision 41674) [x86_64-darwin12.4.0]: equal-style-us-ascii.rb -> US-ASCII | |
| ruby 2.0.0p247 (2013-06-27 revision 41674) [x86_64-darwin12.4.0]: equal-style-utf-8.rb -> UTF-8 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment