Sha256: 9450c8560af5b5b8ce9cc06269032058e79aa20f735b52e96972fc62e184be3c
Contents?: true
Size: 260 Bytes
Versions: 1
Compression:
Stored size: 260 Bytes
Contents
class ExplicitDelegator def initialize(obj) @obj = obj end def __getobj__ @obj end def self.delegate_methods(*methods) methods.each do |method| define_method(method) do __getobj__.send(method) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
woople-theme-0.3.0 | lib/explicit_delegator.rb |