search for: attr_accessor_with_default

Displaying 3 results from an estimated 3 matches for "attr_accessor_with_default".

2008 May 09
2
attr_accessor_with_default funny
I created some virtual attributes in a model in order to store intermediate calculated values. I wanted to use attr_accessor_with_default so that I could give the calculated values an initial value to allow me to use += to easily accumulate values. When I did so I came across some slightly perplexing behaviour which I was wondering if anybody could explain to me. When I tried to create a method in the class which used += on the bare...
2012 Sep 22
4
Class, Module, Object
>> reload! Reloading... => true >> puts Class < Module true => nil >> puts Module < Class false => nil >> puts Module < Object true => nil >> puts Object < Module false => nil >> Object.parent => Object The above indicates that the Class object instance inherits from the Module object instance and the Module object instance
2007 May 26
11
RSpec
...installing the trunk version of rails would resolve it but I got: 330-07:~/desktop/restful_auth_rspec multimedia$ rake spec (in /Users/multimedia/Desktop/restful_auth_rspec) /Users/multimedia/Desktop/restful_auth_rspec/config/../vendor/plugins/trunk/railties/lib/dispatcher.rb:90: undefined method `attr_accessor_with_default'' for #<Class:Dispatcher> (NoMethodError) from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'' from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'' from /usr/local/lib/ruby...