Skip to content

Instantly share code, notes, and snippets.

View mrebola's full-sized avatar

Cesar Gaytán mrebola

View GitHub Profile
@chubas
chubas / ruby_differences.rb
Created October 10, 2012 02:01
(Some) differences between ruby versions.
#!/bin/env ruby
# encoding: utf-8
# Differences between Ruby versions
code = case ARGV[0]
when "1"
puts "- Local block variables"
@azendal
azendal / example
Created October 10, 2012 01:36
CustomEventSupport
# Example CustomEvent
class Dispatcher
include CustomEventSupport
include BubblingSupport
def set_property(value)
dispatch 'property_change', {:value => value}
end
end