| Class | MCollective::Data::Result |
| In: |
lib/mcollective/data/result.rb
|
| Parent: | Object |
# File lib/mcollective/data/result.rb, line 21
21: def []=(key, val)
22: raise "Can only store String, Integer, Float or Boolean data but got #{val.class} for key #{key}" unless [String, Fixnum, Float, TrueClass, FalseClass].include?(val.class)
23:
24: @data[key.to_sym] = val
25: end
# File lib/mcollective/data/result.rb, line 13
13: def include?(key)
14: @data.include?(key.to_sym)
15: end