Skip to content

Suggestion: mention commonly used shorthand for attribute reader/writer #36

Description

@jeromu

In section: 11-writing_classes/06-attribute_writers.md

I suggest you mention these commonly used methods:

class Person
  attr_reader :name
  attr_writer :name
end

class Person
  attr_accessor :name
end

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