Latest Threat Research:Malicious dYdX Packages Published to npm and PyPI After Maintainer Compromise.Details
Socket
Book a DemoInstallSign in
Socket

attr_immutable

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

attr_immutable

bundlerRubyGems.org
Version
1.0.1
Version published
Maintainers
1
Created
Source

= Description

A simple class method to create immutable attributes in the style or attr_attributes, attr_reader, attr_writer, etc.

= Requirements

JRuby

= Usage

Install the gem:

gem install attr_immutable

Run the code:

class ImmutableFoo attr_immutable :foo

end

foo = Foo.new foo.foo = 'Set the value' foo.foo = 'Oops! This will raise an error' # <= This will raise a runtime error.

= History

SimpleWorkQueue is a fork of WorkQueue by Miguel Fonseca. SimpleWorkQueue removes the time out and bounded task queue. The timeout created issues under the concurrency implementation in JRuby. The time out mechanism was replaced using a non-blocking queue from the java.util.concurrent library. If a worker thread attempts to remove a task from the task queue and it is empty it will exit the worker thread.

FAQs

Package last updated on 06 Sep 2011

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts