Skip to content

sweep_up! causes an error in a SubClass #2

Open

Description

@danbernier

If a base class includes TinySweeper and defines some swept fields, and you call sweep_up! on its subclass, you get this error:

NoMethodError: undefined method `each' for nil:NilClass
        from ...tiny_sweeper-0.0.5/lib/tiny_sweeper.rb:20:in `sweep_up!'
        from ...tiny_sweeper-0.0.5/lib/tiny_sweeper.rb:51:in `sweep_up!'

Activity

  1. ZachBeta commented on Jul 29, 2016

    @ZachBeta

    May be worth creating a trivial spec to reproduce it

    Z

    Sent from my smartphone. Please excuse brevity/spelling.
    On Jul 29, 2016 11:46 AM, "Dan Bernier" notifications@github.com wrote:

    If a base class includes TinySweeper and defines some swept fields, and
    you call sweep_up! on its subclass, you get this error:

    NoMethodError: undefined method each' for nil:NilClass from ...tiny_sweeper-0.0.5/lib/tiny_sweeper.rb:20:insweep_up!'
    from ...tiny_sweeper-0.0.5/lib/tiny_sweeper.rb:51:in `sweep_up!'

    —
    You are receiving this because you are subscribed to this thread.
    Reply to this email directly, view it on GitHub
    #2, or mute the
    thread
    https://github.com/notifications/unsubscribe-auth/AAvCVWHKUl8SceChf3shCDF8zqhTOSk2ks5qaiA_gaJpZM4JYUaG
    .

  2. danbernier commented on Jul 29, 2016

    @danbernier
    ContributorAuthor

    Yeah, I will. I just found this, & wanted to not forget about it.

    On Fri, Jul 29, 2016 at 11:48 AM, Zach Morek notifications@github.com
    wrote:

    May be worth creating a trivial spec to reproduce it

    Z

    Sent from my smartphone. Please excuse brevity/spelling.
    On Jul 29, 2016 11:46 AM, "Dan Bernier" notifications@github.com wrote:

    If a base class includes TinySweeper and defines some swept fields, and
    you call sweep_up! on its subclass, you get this error:

    NoMethodError: undefined method each' for nil:NilClass from ...tiny_sweeper-0.0.5/lib/tiny_sweeper.rb:20:insweep_up!'
    from ...tiny_sweeper-0.0.5/lib/tiny_sweeper.rb:51:in `sweep_up!'

    —
    You are receiving this because you are subscribed to this thread.
    Reply to this email directly, view it on GitHub
    #2, or mute
    the
    thread
    <
    https://github.com/notifications/unsubscribe-auth/AAvCVWHKUl8SceChf3shCDF8zqhTOSk2ks5qaiA_gaJpZM4JYUaG

    .

    —
    You are receiving this because you authored the thread.
    Reply to this email directly, view it on GitHub
    #2 (comment),
    or mute the thread
    https://github.com/notifications/unsubscribe-auth/AAAzFecKkPS_OecwoN0f3UMfH2Wfo7tiks5qaiDOgaJpZM4JYUaG
    .


    This email and all files transmitted with it are intended solely for use by
    the intended recipient. Any other use is prohibited. If you received this
    email in error, please notify the sender, delete the email and destroy all
    attachments. Opinions and ideas expressed herein are solely those of the
    sender, and may not reflect the official position of Continuity.

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