Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
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

  • 1.0.1
  • Rubygems
  • Socket score

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc