Module: Card::Set::All::ViewViz::HtmlFormat

Extended by:
Card::Set::AbstractFormat
Defined in:
platypus/tmp/set/gem-defaults/mod035-monkey/all/view_viz.rb

Instance Method Summary collapse

Instance Method Details

#view: views_by_formatObject



9
10
11
12
13
14
15
16
# File 'platypus/tmp/set/gem-defaults/mod035-monkey/all/view_viz.rb', line 9

view :views_by_format do
  accordion do
    views_by_format_hash.each_with_object([]) do |(format, views), array|
      context = format.to_name.key
      array << accordion_item(format, body: list_group(views), context: context)
    end
  end
end

#view: views_by_nameObject



18
19
20
21
22
23
# File 'platypus/tmp/set/gem-defaults/mod035-monkey/all/view_viz.rb', line 18

view :views_by_name do
  views = methods.map do |method|
    Regexp.last_match(1) if method.to_s.match?(/^_view_(.+)$/)
  end.compact.sort
  list_group views
end