Sha256: c08118fad75fc9dd33b83c3b1d0640898c0c226b2c8566cfbf618e8c567879b3
Contents?: true
Size: 537 Bytes
Versions: 39
Compression:
Stored size: 537 Bytes
Contents
class SlackSmartBot def get_rules_imported if File.exist?("#{config.path}/rules/rules_imported.rb") if !defined?(@datetime_rules_imported) or @datetime_rules_imported != File.mtime("#{config.path}/rules/rules_imported.rb") @datetime_rules_imported = File.mtime("#{config.path}/rules/rules_imported.rb") file_conf = IO.readlines("#{config.path}/rules/rules_imported.rb").join unless file_conf.to_s() == "" @rules_imported = eval(file_conf) end end end end end
Version data entries
39 entries across 39 versions & 1 rubygems