Sha256: 6a2d05d79866b180fde505f6dfae94ffc42367a7ab3964255b62ab1cce06d895
Contents?: true
Size: 419 Bytes
Versions: 1
Compression:
Stored size: 419 Bytes
Contents
module Helpers def check_disallowed(name) # raise "Illegal name '#{name}'" if _disallowed?(name) # FIXME use custom exception raise DisallowedName, name if _disallowed?(name) end def check_file_exists(file) raise FileNotFound(file) unless File.exist?(file) end def set_variables(pairs) pairs.each do |pair| var, value = *pair @parent._setvar(var, value) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
livetext-0.9.13 | lib/helpers.rb |