module Authlete::Types::ConstantUtility

Public Instance Methods

constant_get(constant_name) click to toggle source
# File lib/authlete/types/constant-utility.rb, line 21
def constant_get(constant_name)
  if constant_name.nil?
    return nil
  end

  begin
    const_get(constant_name)
  rescue
    nil
  end
end