solnic/virtus — Issue #28: Virtus cannot define attributes on Objects
Author: postmodern
Created: 2011-11-08 06:29:40+00:00
State: open

I was trying to replace [Parameters](http://github.com/postmodern/parameters) with Virtus. One of the features of Parameters, is being able to define parameters on Objects as well as Classes. Virtus does not want to be extended into an Object.

class Test
end
obj = Test.new
obj.extend Virtus::ClassMethods

NoMethodError: undefined method `const_set' for #
/home/hal/.rvm/gems/ruby-1.9.3-p0/gems/virtus-0.0.9/lib/virtus/class_methods.rb:16:in `extended'