Class Merb::SimpleSet
In: lib/merb-core/core_ext/set.rb
Parent: Hash

Simple set implementation on top of Hash with mergins support.

In particular this is used to store a set of callable actions of controller.

Methods

<<   inspect   merge   new  

External Aliases

keys -> to_a
  def to_a

Public Class methods

Parameters

arr<Array>:Initial set values.

Returns

Array:The array the Set was initialized with

Public Instance methods

Parameters

value<Object>:Value to add to set.

Returns

true

Returns

String:A human readable version of the set.

Parameters

arr<Array>:Values to merge with set.

Returns

SimpleSet:The set after the Array was merged in.

[Validate]