This file contains 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
class Tosti | |
def self.validate(*ingredients, preparation_method) | |
ingredients.include?(:brood) && ingredients.length > 1 && preparation_method == :grill | |
end | |
end |
This file contains 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
class Tosti | |
def self.validate(*ingredients, preparation_method) | |
ingredients.include?(:brood) && ingredients.length > 1 && preparation_method == :grill | |
end | |
end |
This file contains 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
#!/usr/bin/ruby | |
require 'cgi' | |
# #Hashtagerize. The wet dream of hashtag-overusing-idiots out there. | |
# You know who you are. Stop it. | |
IO.popen 'open http://twitter.com/?status=' << CGI::escape(ARGV.collect { |word| word[0] == 64 ? word : "##{word}" }.join(' ')) |
This file contains 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
#!/usr/bin/ruby | |
require 'cgi' | |
# #Hashtagerize. The wet dream of hashtag-overusing-idiots out there. | |
# You know who you are. Stop it. | |
puts 'please type the text you want to #Hashtagerize and press [ENTER]...' | |
IO.popen 'open http://twitter.com/?status=' << CGI::escape(gets.split(' ').collect { |word| word[0] == 64 ? word : "##{word}" }.join(' ')) |
This file contains 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
puts 'please type the text you want to #hashtagerize and press [ENTER]...' | |
open 'http://twitter.com/?status=' << gets.split(' ').collect { |word| word[0] == 64 ? word : "##{word}" }.join(' ') |
This file contains 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
puts 'please type the text you want to #hashtagerize and press [ENTER]...' | |
open 'http://twitter.com/?status=#' << gets.split(' ').collect { |word| word[0] == 64 ? word : "##{word}" }.join(' ') |
NewerOlder