Issue #8564 has been reported by boris_stitnicky (Boris Stitnicky).

----------------------------------------
Feature #8564: Extend Module#attr... methods
https://bugs.ruby-lang.org/issues/8564

Author: boris_stitnicky (Boris Stitnicky)
Status: Open
Priority: Normal
Assignee: 
Category: 
Target version: 


Extend #attr_reader, #attr_writer, #attr_accessor syntax to accept default values, such as:

    attr_reader foo: 42, bar: 43

Possibility of closures evaluated at initialization time might also be considered:

    attr_reader baz: -> { Time.now }, quux: 42

    


-- 
http://bugs.ruby-lang.org/