Created
August 10, 2011 19:49
-
-
Save manuelbrunner/1137965 to your computer and use it in GitHub Desktop.
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 'datamapper' | |
DataMapper.setup(:default, 'sqlite::memory:') | |
class Test | |
include DataMapper::Resource | |
property :id, Serial | |
property :prop, String | |
def set_prop(value) | |
prop = value | |
end | |
end | |
t = Test.new | |
t.set_prop 'a' | |
puts t.prop.nil? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment