From 8d6c195b3bf99090383acc9fa36248f76afcaf54 Mon Sep 17 00:00:00 2001 From: danielsdeleo Date: Fri, 12 Jul 2013 09:12:07 -0700 Subject: OHAI-412 allow attribute access via System objects --- lib/ohai/system.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/ohai/system.rb b/lib/ohai/system.rb index d1c3c8da..8e5e212a 100644 --- a/lib/ohai/system.rb +++ b/lib/ohai/system.rb @@ -41,6 +41,9 @@ module Ohai @hints = Hash.new end + def [](key) + @data[key] + end def all_plugins require_plugin('os') -- cgit v1.2.1