class Teatime::Teafile::Context::TeafileConfig
Public Class Methods
delegate(attr)
click to toggle source
# File lib/teatime/teafile.rb, line 45 def self.delegate(attr) define_method attr do @context.public_send attr end define_method "#{attr}=" do |arg| @context.public_send "#{attr}=", arg end end
delegates(*attrs)
click to toggle source
# File lib/teatime/teafile.rb, line 39 def self.delegates(*attrs) attrs.each do |attr| delegate attr end end
new(context)
click to toggle source
# File lib/teatime/teafile.rb, line 55 def initialize(context) @context = context end