class NameSPoolHash

Attributes

itgt[RW]
nickname[RW]

Public Instance Methods

method_missing(method_id, *arguments) click to toggle source
# File lib/tdl/exlib/itegration.rb, line 59
def method_missing(method_id, *arguments)
    m0 = method_id.match(/(?<name>.+)\s*=/)
    # m_self = method_id.match(/^self_(?<name>.+)/)
    # m1 = method_id.match(/(?<name>.+)\s*=/)
    # if m_self
    #     send("[]=",m_self[:name],m_self[:name])
    # elsif m0
    if m0
        # if has_key?(m0[:name])
        # old_assign(m0[:name],arguments[0])
        send("[]=",m0[:name],arguments[0])
    elsif  has_key?(method_id.to_s)
        send("[]",method_id)
    else
        raise TdlError.new("Itegration dont has name #{method_id} in names_pool")
    end
end
use_self(a) click to toggle source
# File lib/tdl/exlib/itegration.rb, line 44
def use_self(a)
    unless old_index(a.to_s)
        send("[]=",a,a)
        send("[]",a)
    else
        send("[]",a)
    end
end
use_selfs(*a) click to toggle source
# File lib/tdl/exlib/itegration.rb, line 53
def use_selfs(*a)
    a.each do |aa|
        use_self(aa)
    end
end