Created
January 9, 2010 17:45
-
-
Save mhfs/273000 to your computer and use it in GitHub Desktop.
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
# My Method | |
def mymethod | |
# My puts | |
puts "Ruby Rocks" | |
end |
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
# lines = [] | |
# file = File.open('code.txt') | |
# file.each { |line| lines << line unless line =~ /^\s*#\s*/ or line =~ /^\n$/} | |
lines = File.readlines('code.txt').delete_if { |line| line =~ /^\s*#\s*/ or line =~ /^\n$/ } | |
puts lines |
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
def mymethod | |
puts "Ruby Apavora" | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment