Sha256: f774ab3a4760aa4495a193e27e96a9f4929e0c7106c370a5ab7e9f4879d5f1a5
Contents?: true
Size: 309 Bytes
Versions: 1
Compression:
Stored size: 309 Bytes
Contents
module Lou class Transformer def up(&block) @up = block self end def down(&block) @down = block self end def apply(input) @up.nil? ? input : @up.call(input) end def reverse(output) @down.nil? ? output : @down.call(output) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
lou-0.1.0 | lib/lou/transformer.rb |