From: jtprince Date: 2011-02-26T04:05:36+09:00 Subject: Re: how to override the new/initialize method for a struct? okay, this works: Dog = Struct.new(:bark, :bite) class Dog class << self alias_method :old_new, :new def new(*args) obj = old_new(*args) obj.bark = 'really loud' obj end end end dd = Dog.new p dd.bark # => should be "really loud"