Module: Structure::Type::Methods

Defined in:
lib/structure.rb

Instance Method Summary collapse

Instance Method Details

#a_list_of(*class_list) ⇒ Object



139
140
141
# File 'lib/structure.rb', line 139

def a_list_of(*class_list)
  Structure::Type::Array.new(class_list)
end

#a_list_with(struct) ⇒ Object



147
148
149
# File 'lib/structure.rb', line 147

def a_list_with(struct)
  Structure::Type::ArrayWithStruct.new(struct)
end

#one_of(*class_list) ⇒ Object



143
144
145
# File 'lib/structure.rb', line 143

def one_of(*class_list)
  Structure::Type::Single.new(class_list)
end