Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
Ruby
Why can not set value to instance variable of Class?
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="Tony Arcieri, post: 4670976"] [Note: parts of this message were removed to make it a legal post.] You've defined an attr_writer for :paralist, but need an attr_reader for it in order for the method you are calling to be defined. You probably want to change attr_writer to attr_reader, or use attr_accessor if you really want it to still be writable. attr_writer defines a separate method called paralist=. You can call that method using paraclass.paralist = foobar. [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
Ruby
Why can not set value to instance variable of Class?
Top