Flowdock
new_ostruct_member(name) public

No documentation

This method has no description. You can help the Ruby community by adding new notes.

Hide source
# File lib/ostruct.rb, line 70
  def new_ostruct_member(name)
    name = name.to_sym
    unless self.respond_to?(name)
      meta = class << self; self; end
      meta.send(:define_method, name) { @table[name] }
      meta.send(:define_method, "#{name}=""#{name}=") { |x| @table[name] = x }
    end
  end
Register or log in to add new notes.