module Ohai::NamedPlugin
For plugin namespacing
Public Class Methods
strict_const_defined?(const)
click to toggle source
# File lib/ohai/dsl/plugin.rb, line 36 def self.strict_const_defined?(const) const_defined?(const) end
valid_name?(name)
click to toggle source
# File lib/ohai/dsl/plugin.rb, line 30 def self.valid_name?(name) name.is_a?(Symbol) && name.to_s.match(/^[^A-Z]|_/).nil? end