Skip to content

OO accessors #170

@naartjie

Description

@naartjie

Hi. I'm using a class to store a user's profile information. I would like to check if the birthday which is being set on the profile is valid, inside of a setter method.

Does moonscript have get/set accessor semantics built in already or are workarounds such as this gist the way to go? Or am I completely missing the point, and should I be applying something else here?

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions