Class: Casts
- Inherits:
-
Mustache
- Object
- Mustache
- Casts
- Defined in:
- lib/zine_brewer/templates/casts.rb
Instance Method Summary collapse
Instance Method Details
#prof_list ⇒ Object
32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 |
# File 'lib/zine_brewer/templates/casts.rb', line 32 def prof_list result = [] (casts rescue a_cast_param).each do |h| a_cast = {} raise "Error: No src:" if h["src"].nil? a_cast[:title] = h["title"] a_cast[:title_sw] = !h["title"].nil? a_cast[:fig_src] = make_src(h["src"]) a_cast[:name] = h["name"] a_cast[:huri] = h["huri"] a_cast[:caption] = (h["cap"]) result << a_cast end result end |