class Eft::Cfg

configuration class

Public Class Methods

new(cfg = {}, &b) click to toggle source

set from hash, pass to block, freeze

# File lib/eft.rb, line 78
def initialize(cfg = {}, &b)
  @cfg = cfg; b[self] if b; @cfg.freeze
end

Public Instance Methods

_opts() click to toggle source

nothing by default

# File lib/eft.rb, line 88
def _opts; [] end
call(k, *a) click to toggle source

call if set

# File lib/eft.rb, line 83
def call(k, *a)
  @cfg[k][*a] if @cfg[k]
end