Module: Stronger::Collection

Included in:
TypedArray, TypedHash
Defined in:
lib/stronger/collection.rb

Constant Summary collapse

Interface =
Stronger::Interface.new(:type)

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#typeObject (readonly)

Returns the value of attribute type.



6
7
8
# File 'lib/stronger/collection.rb', line 6

def type
  @type
end

Instance Method Details

#initialize(type, *rest) ⇒ Object



7
8
9
10
# File 'lib/stronger/collection.rb', line 7

def initialize(type, *rest)
  @type = type
  super(*rest)
end