Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tag: v0.2.1
Fetching contributors…

Cannot retrieve contributors at this time

40 lines (30 sloc) 0.78 kb

RData

Code Climate Build Status Dependency Status

Installation

gem install rdata

Or in a Gemfile

gem 'rdata'

Usage

require 'rdata'

Stacks

Initialization

@stack = RData.Stack

Operations

@stack.push(x)      # => Returns 'x'
@stack.pop          # => Returns 'top'
@stack.top          # => Returns 'top'
@stack.is_empty?    # => Returns true/false

More on Stacks

Stacks - Wiki Link

Jump to Line
Something went wrong with that request. Please try again.