X-Git-Url: https://review.fuel-infra.org/gitweb?a=blobdiff_plain;ds=sidebyside;f=doc%2FMCollective%2FData%2FResult.html;fp=doc%2FMCollective%2FData%2FResult.html;h=0e7b553a0ac9f86d58d875bfe356feaaf2be383d;hb=7c9314f502cde8daad23b61d10b24a542e04154a;hp=0000000000000000000000000000000000000000;hpb=d1f1649ba43c5cbc43c4beb2380096ba051d646a;p=packages%2Fprecise%2Fmcollective.git diff --git a/doc/MCollective/Data/Result.html b/doc/MCollective/Data/Result.html new file mode 100644 index 0000000..0e7b553 --- /dev/null +++ b/doc/MCollective/Data/Result.html @@ -0,0 +1,581 @@ + + + +
+ + +(Not documented)
+ + + ++ # File lib/mcollective/data/result.rb, line 9 + 9: def initialize(outputs) +10: @data = {} +11: +12: outputs.keys.each do |output| +13: @data[output] = Marshal.load(Marshal.dump(outputs[output].fetch(:default, nil))) +14: end +15: end+
(Not documented)
+ + + ++ # File lib/mcollective/data/result.rb, line 21 +21: def [](key) +22: @data[key.to_sym] +23: end+
(Not documented)
+ + + ++ # File lib/mcollective/data/result.rb, line 25 +25: def []=(key, val) +26: raise "Can only store String, Integer, Float or Boolean data but got #{val.class} for key #{key}" unless [String, Fixnum, Bignum, Float, TrueClass, FalseClass].include?(val.class) +27: +28: @data[key.to_sym] = val +29: end+
(Not documented)
+ + + ++ # File lib/mcollective/data/result.rb, line 17 +17: def include?(key) +18: @data.include?(key.to_sym) +19: end+
(Not documented)
+ + + ++ # File lib/mcollective/data/result.rb, line 31 +31: def keys +32: @data.keys +33: end+
(Not documented)
+ + + ++ # File lib/mcollective/data/result.rb, line 35 +35: def method_missing(method, *args) +36: key = method.to_sym +37: +38: raise NoMethodError, "undefined local variable or method `%s'" % key unless include?(key) +39: +40: @data[key] +41: end+
Disabled; run with --debug to generate this.
+ +Generated with the Darkfish + Rdoc Generator 1.1.6.
+