This is a wrapper around Raindrops objects much like the core Ruby Struct can be seen as a wrapper around the core Array class. It's usage is similar to the core Struct class, except its fields may only be used to house unsigned long integers.
class Foo < Raindrops::Struct.new(:readers, :writers) end foo = Foo.new 0, 0 foo.incr_writers -> 1 foo.incr_readers -> 1
new (*members) source
returns a new class derived from Raindrops::Struct and supporting the given
members as fields, just like Struct.new in core Ruby.
mail archives: https://bogomips.org/raindrops-public/ http://ou63pmih66umazou.onion/raindrops-public nntp://news.public-inbox.org/inbox.comp.lang.ruby.raindrops nntp://ou63pmih66umazou.onion/inbox.comp.lang.ruby.raindrops public: firstname.lastname@example.org source code: git clone git://bogomips.org/raindrops.git git clone https://bogomips.org/raindrops.git