Socket
Book a DemoInstallSign in
Socket

circular_list

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

circular_list

0.0.4
bundlerRubygems
Version published
Maintainers
1
Created
Source

Circular List

A circular list data structure for Ruby.

How to install

gem install circular_list

OR

gem 'circular_list' in Gemfile

How to use

require 'rubygems' require 'circular_list'

c = CircularList::List.new([1,2,3]) c.fetch_next => 2 c.fetch_next => 3 c.fetch_next => 1 c.fetch_next => 2

c = CircularList::List.new([1,2,3]) c.fetch_previous => 3 c.fetch_previous => 2 c.fetch_previous => 1 c.fetch_previous => 3

See specs https://github.com/bangthetable/CircularList/blob/master/spec/circular_list/list_spec.rb for more examples.

FAQs

Package last updated on 13 Oct 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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.