def f10
@stock = Stock.find params[:id]
if @stock.big_broad?
@f10s = StockF10::BIG_BROAD_F10
elseif @stock.stock?
@f10s = StockF10::STOCK_F10s
elseif @stock.fund?
@f10s = StockF10::FUND_F10s
end
puts @stock.big_broad?
puts @stock.stock?
puts StockF10::STOCK_F10s
puts @f10s
end
输出结果
false
true
{1=>"最新提示", 2=>"公司概况", 3=>"财务分析", 4=>"股东研究", 5=>"股本股改", 6=>"风险因素", 7=>"公司报导", 8=>"行业分析", 9=>"公司大事", 10=>"港澳分析", 11=>"经营分析", 12=>"主
力追踪", 13=>"分红扩股", 14=>"高层治理", 15=>"百家争鸣", 16=>"关联个股"}
谁能告诉我@f10s为什么是空呢?