Skip to content

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

@louismrose

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 >"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions