search for: default_reader_valu

Displaying 1 result from an estimated 1 matches for "default_reader_valu".

Did you mean: default_reader_value
2013 Nov 15
0
Please, take a look at PR #10848 "Allow to pass a block to `cattr_reader`."
Allow to pass a block to cattr_reader . cattr_accessor already accepts defaults using a block. So just unify the interface. Example: class A cattr_reader(:defr) { ''default_reader_value'' } end A.defr # => ''default_reader_value'' https://github.com/rails/rails/pull/10848 -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To unsubscribe from this group and stop receiving emails from it...