Sha256: f9a2bd8be1a80b9adbcdeb8b9e1e4f78d278c09ef720a29ebea27175c23cc834
Contents?: true
Size: 294 Bytes
Versions: 2
Compression:
Stored size: 294 Bytes
Contents
class ContextExposer::ViewContext attr_reader :controller def initialize controller = nil @controller = controller end protected def define_singleton_method(name, &block) eigenclass = class<<self; self end eigenclass.class_eval {define_method name, block} end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
context_exposer-0.1.0 | lib/context_exposer/view_context.rb |
context_exposer-0.0.1 | lib/context_exposer/view_context.rb |