Skip to content

Cannot Memoize Methods #107

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions