Created
August 20, 2012 02:17
-
-
Save octosteve/3399350 to your computer and use it in GitHub Desktop.
Evil things with ruby
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
# I wanted to create a class with lowercase name | |
my_class = Class.new(Object) do | |
attr_accessor :why_do_i_work | |
def initialize | |
puts "WTF" | |
end | |
end | |
wat = my_class.new | |
wat.why_do_i_work = "ZOMG" | |
wat.why_do_i_work |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment