Sha256: 0dffa58a640bdad1e6c0eee1cb555132fe3b238ea99e2b4cf4c9dd3cb5b6c64a
Contents?: true
Size: 582 Bytes
Versions: 1
Compression:
Stored size: 582 Bytes
Contents
# encoding: utf-8 module PagesCore module Templates class ConfigurationProxy def initialize(callback, parent = nil) @callback = callback @parent = parent end def method_missing(method_name, *args, &block) if @parent && block_given? @callback.call(@parent, method_name, block) elsif @parent @callback.call(@parent, method_name, *args) elsif block_given? @callback.call(method_name, block) else @callback.call(method_name, *args) end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
pages_core-3.5.1 | lib/pages_core/templates/configuration_proxy.rb |