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
require "rake" | |
Gem::Specification.new do |s| | |
s.name = "GEM_NAME" | |
s.version = "0.1.0" | |
s.summary = "GEM_SUMMARY (short)" | |
s.description = "GEM_DESCRIPTION (longer)" | |
s.homepage = "http://example.com/GEM_NAME" | |
s.authors = ["GEM_AUTHOR_NAME"] | |
s.email = "GEM_AUTHOR_EMAIL" |
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 Foo | |
def start | |
# Do something important here | |
perform :start | |
end | |
def finish | |
perform :finish | |
# Clean up stuff here | |
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
a = [1, 2, 3] | |
b = [3, 2, 1] | |
class Array | |
def =~(other) | |
self.sort == other.sort | |
end | |
end | |
puts a =~ b #=> true |
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
require 'rubygems' | |
require 'gosu' | |
class LittleBrat < Gosu::Window | |
LETTER_LIMIT = 100 | |
def initialize | |
# Full resolution, fullscreen | |
super(Gosu.screen_width, Gosu.screen_height, true) | |
self.caption = "Leave me alone you little brat!" | |
# The letters the little brat hits on the keyboard |
NewerOlder