lib/experiment.rb in expetable-0.2.4 vs lib/experiment.rb in expetable-0.2.5

- old
+ new

@@ -56,9 +56,13 @@ @list.push newexp self.save true end end + def value(name, label) + e = self.find_by_name(name) + e[label] || "?" + end def update(name, step, state) e = self.find_by_name(name) unless e.nil? @list.each do |item| if item[:name] == name