Skip to content

Cannot Memoize Methods #107

@richmolj

Description

@richmolj
attribute :foo do
  memo_method
end

def memo_method
  @memo ||= 'adsf'
end

Will raise error RuntimeError: can't modify frozen ..., due to this #freeze call. Is there a downside to removing the freeze?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions