Ruby – alias of instance variables?

Is there a way to create an alias for an instance variable (not talking about the db alias attribute) instead of assigning it to another instance var?

For example:

@imavar

alias_attribute(@hesavar, @imavar)

you can use the getter method instead.

Is there a way to create an instance variable Alias ​​(not talking about the db alias attribute) instead of assigning it to another instance var?

For example:

@imavar

alias_attribute(@hesavar, @imavar)

You can use the getter method instead.

WordPress database error: [Table 'yf99682.wp_s6mz6tyggq_comments' doesn't exist]
SELECT SQL_CALC_FOUND_ROWS wp_s6mz6tyggq_comments.comment_ID FROM wp_s6mz6tyggq_comments WHERE ( comment_approved = '1' ) AND comment_post_ID = 3287 ORDER BY wp_s6mz6tyggq_comments.comment_date_gmt ASC, wp_s6mz6tyggq_comments.comment_ID ASC

Leave a Comment

Your email address will not be published.