Sha256: a5b40df8b0133b3e46b0f0c6559c0da5eb808825c55ff1457b60ade6d341a987
Contents?: true
Size: 580 Bytes
Versions: 7
Compression:
Stored size: 580 Bytes
Contents
module Galakei module Filter # :nodoc: all class Base attr_accessor :controller def self.condition?(controller) @instance ||= self.new @instance.controller = controller @instance.condition? end def self.filter(controller, &block) @instance ||= self.new @instance.controller = controller @instance.filter(&block) end def method_missing(m, *args) if controller.respond_to?(m) controller.send(m, *args) else super end end end end end
Version data entries
7 entries across 7 versions & 1 rubygems