Sha256: 37986bd80c0c992827d36c76ba86ba464046770c23cebd006ed9a54100e608f8
Contents?: true
Size: 511 Bytes
Versions: 1
Compression:
Stored size: 511 Bytes
Contents
require 'sourcify' module CanTango class Ability module Cache module Kompiler def compile_rules! rules_raw rules_compiled = rules_raw.map do |rule| rule.block = rule.block.to_source if rule.block.class == Proc rule end end def decompile_rules! rules_compiled rules_raw = rules_compiled.map do |rule| rule.block = eval("#{rule.block}") rule end end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
cantango-0.8.0 | lib/cantango/ability/cache/kompiler.rb |