configure

configure(slot, value=None)
Instance Public methods

def cget(slot)

slot = slot.to_s

if @option_methods.include?(slot)
  if @option_methods[slot][:cget]
    return self.__send__(@option_methods[slot][:cget])
  else
    if @option_setting[slot]
      return @option_setting[slot]
    else
      return ''
    end
  end
end

tbl = @delegates[slot]
tbl = @delegates['DEFAULT'] unless tbl

begin
  if tbl
    opt, wins = tbl[-1]
    opt = slot if opt == 'DEFAULT'
    if wins && wins[-1]
      return wins[-1].cget(opt)
    end
  end
rescue
end

super(slot)

end

doc_ruby_on_rails
2015-06-04 16:32:33
Comments
Leave a Comment

Please login to continue.