Class: Gooby::History

Inherits:
GoobyObject show all
Defined in:
lib/gooby/cls_history.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from GoobyProjectInfo

#google_maps_api_level, #project_author, #project_copyright, #project_date, #project_license, #project_version_number, #project_year, #some_new_thing, #tested_files

Methods included from Introspect

#introspect, #to_yaml_properties

Methods included from GoobyString

#tokenize

Methods included from GoobyIO

#read_as_ascii_lines, #read_lines, #strip_lines

Constructor Details

#initializeHistory

Returns a new instance of History.



17
18
19
# File 'lib/gooby/cls_history.rb', line 17

def initialize
  @runs = Array.new
end

Instance Attribute Details

#runsObject (readonly)

Returns the value of attribute runs.



15
16
17
# File 'lib/gooby/cls_history.rb', line 15

def runs
  @runs
end

Instance Method Details

#add_run(run) ⇒ Object

Adds a Run during XML parsing.



22
23
24
# File 'lib/gooby/cls_history.rb', line 22

def add_run(run)  
  @runs.push(run)    
end


30
31
32
33
34
# File 'lib/gooby/cls_history.rb', line 30

def print_string
  s = "History: run count=#{@runs.size} \n"
  runs.each { | run | s << run.print_string }
  s
end

#to_sObject



26
27
28
# File 'lib/gooby/cls_history.rb', line 26

def to_s
  return "Hist: runs: #{@runs.size}"
end