lib/rulebow/digest.rb
# Save current digest.
#
# Returns nothing.
Save current digest.
Returns nothing.
Save current digest . Returns nothing .
def save(ruleset=nil)
      if ruleset
        ruleset = getruleset(ruleset)
        refresh(ruleset)
        saved[ruleset.name.to_s] = current[ruleset.name.to_s]
      else
        refresh
        saved = current
      end
      dir = File.dirname(filename)
      FileUtils.mkdir_p(dir) unless File.directory?(dir)
      File.open(filename, 'w') do |f|
        f << to_s
      end
    end
def save ( ruleset = nil ) if ruleset ruleset = getruleset ( ruleset ) refresh ( ruleset ) saved [ ruleset . name . to_s ] = current [ ruleset . name . to_s ] else refresh saved = current end dir = File . dirname ( filename ) FileUtils . mkdir_p ( dir ) unless File . directory? ( dir ) File . open ( filename , 'w' ) do | f | f << to_s end end
Save current digest.
Save current digest .
ruleset
<not_specific>