Class: Scheming::Type::Object

Inherits:
Base
  • Object
show all
Defined in:
lib/scheming/type.rb

Overview

Object Type Definition

Holds any number of named fields and the types that they hold

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes = Scheming::Attribute::List.empty) ⇒ Object

Returns a new instance of Object.

Parameters:



26
27
28
29
30
# File 'lib/scheming/type.rb', line 26

def initialize(attributes = Scheming::Attribute::List.empty)
  super()
  @attributes = attributes
  freeze
end

Instance Attribute Details

#attributesScheming::Attribute::List (readonly)



23
24
25
# File 'lib/scheming/type.rb', line 23

def attributes
  @attributes
end