Class: Roject::Project

Inherits:
Object
  • Object
show all
Includes:
LoadSaveable
Defined in:
lib/project.rb

Overview

Created: 7 - 10 - 2016

Instance Method Summary collapse

Methods included from LoadSaveable

included

Constructor Details

#initialize(hash = {}) ⇒ Project

Creates a Project with the given data hash

Parameter: hash - the data to be contained in the project



33
34
35
# File 'lib/project.rb', line 33

def initialize hash={}
  @project = hash
end

Instance Method Details

#config(hash) ⇒ Object

This is a test method and is depricated by default. Do not use!



38
# File 'lib/project.rb', line 38

def config(hash); @project = hash; end

#hashObject

Returns a hash of the data contained in the project

Return: a hash of the data contained in the project



43
44
45
# File 'lib/project.rb', line 43

def hash
  @project
end