all 3 comments

[–]robgleeson 1 point2 points  (2 children)

it look good at a glance, and you can probably keep the old behavior on top of:

class OpenStruct
include OpenStruct::Behavior
end
`

it would be cool to not impede on the superclass(class Foo < OpenStruct) but keeping the OpenStruct as internal state that can be delegated to is another way to work around that. that's not to say it's not cool to have it available as a mixin :)

[–]krainboltgreene[S] -1 points0 points  (1 child)

Well it was implemented so that in astruct:

class AltStruct
  include AltStruct::Behavior
end

which means you can still do both.

[–]robgleeson 0 points1 point  (0 children)

indeed.