Sha256: 7a280d02c5ed3eea6c55021f4875231e6b0a41930e53dd304f778f560f113cd8

Contents?: true

Size: 324 Bytes

Versions: 5

Compression:

Stored size: 324 Bytes

Contents

#          Copyright (c) 2006 Michael Fellinger m.fellinger@gmail.com
# All files in this distribution are subject to the terms of the Ruby license.
class OpenStruct

  # create a new OpenStruct and fill it with a merge of the old @table and the passed hash

  def temp hash
    self.class.new(@table.merge(hash))
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
ramaze-0.0.7 lib/ramaze/snippets/openstruct/temp.rb
ramaze-0.0.9 lib/ramaze/snippets/openstruct/temp.rb
ramaze-0.0.6 lib/ramaze/snippets/openstruct/temp.rb
ramaze-0.0.8 lib/ramaze/snippets/openstruct/temp.rb
ramaze-0.1.0 lib/ramaze/snippets/openstruct/temp.rb