Skip to content

Inspect, eql?, == and hash should work even when no attributes are specified #4

Description

@louismrose

The following code does not cause the inspect, eql?, == and hash methods to be added:

class Foo
  extend Attributable
end

For now, the workaround is to call attributes with no arguments:

class Foo
  extend Attributable
  attributes
end

But note that this highlights a slight bug in inspect:

Foo.new.inspect => "<Foo >"

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