Support

If you have a problem or need to report a bug please email : support@dsprobotics.com

There are 3 sections to this support area:

DOWNLOADS: access to product manuals, support files and drivers

HELP & INFORMATION: tutorials and example files for learning or finding pre-made modules for your projects

USER FORUMS: meet with other users and exchange ideas, you can also get help and assistance here

NEW REGISTRATIONS - please contact us if you wish to register on the forum

Users are reminded of the forum rules they sign up to which prohibits any activity that violates any laws including posting material covered by copyright

Ruby init Method Cannot Access @ins

For general discussion related FlowStone

Ruby init Method Cannot Access @ins

Postby fabb » Sun Aug 18, 2013 11:41 am

I'd like to initialize some instance variables according to the current value on one of the @ins.
@ins is nil in the init method though. Is this a bug?

Workaround: set the instance variable in the event method if it is nil.
User avatar
fabb
 
Posts: 6
Joined: Wed Feb 20, 2008 9:06 pm

Re: Ruby init Method Cannot Access @ins

Postby trogluddite » Mon Aug 19, 2013 11:41 am

Hi fabb,
Yes that's perfectly normal - and you got the right solution too.
All schematics/modules I post are free for all to use - but a credit is always polite!
Don't stagnate, mutate to create!
User avatar
trogluddite
 
Posts: 1730
Joined: Fri Oct 22, 2010 12:46 am
Location: Yorkshire, UK


Return to General

Who is online

Users browsing this forum: No registered users and 58 guests