Skip to content

Add mutable structure #2

@ka8725

Description

@ka8725

It would be great to have something similar to this:

class MyClass
  property :foo
  property :bar
end

c = MyClass.new(foo: 'foo', bar: 'bar')
c.foo # => 'foo'
c.bar # => 'bar'
c[:foo] # => undef method []
c.foo = 'foofoo'
c.foo # => 'foofoo'
c.to_hash # => {foo: 'foo', bar: 'bar'}

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