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
#!/bin/env ruby | |
# encoding: utf-8 | |
# Differences between Ruby versions | |
code = case ARGV[0] | |
when "1" | |
puts "- Local block variables" |
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
# Example CustomEvent | |
class Dispatcher | |
include CustomEventSupport | |
include BubblingSupport | |
def set_property(value) | |
dispatch 'property_change', {:value => value} | |
end | |
end |