Top Level Namespace

Includes:
ContentHelpers, FormattingHelpers, ICalFeedHelpers, LectureHelpers, ListOfHelpers, LoggingHelpers, Nanoc::Helpers::LinkTo, Nanoc::Helpers::Rendering, Nanoc::Helpers::Tagging, NavigationHelpers, SidebarHelpers, VisualHelpers

Defined Under Namespace

Modules: ContentHelpers, CourseGen, Coursegen, FormattingHelpers, ICalFeedHelpers, LectureHelpers, ListOfHelpers, LoggingHelpers, NavigationHelpers, SidebarHelpers, VisualHelpers Classes: BootstrapMarkup, CItem, DataAdaptor, ICalAdaptor, Lectures, ListOf, ScheduleDef, ScheduleFeed, Scheduler, SearchIndex, Section, SectionDef, TableHelper, Toc

Constant Summary collapse

WEEKDAYS =
{ sunday: 0, monday: 1, tuesday: 2,
wednesday: 3, thursday: 4, friday: 5, saturday: 6 }.freeze

Instance Method Summary collapse

Methods included from VisualHelpers

#end_of_lecture

Methods included from FormattingHelpers

#le, #list_begin, #list_end

Methods included from ICalFeedHelpers

#generate_ical

Methods included from ListOfHelpers

#list_of

Methods included from SidebarHelpers

#collapsed_indicator, #flat_section, #flat_section_item_link, #icon_markup, #nested_section, #section_helper, #subsection, #subsection_body, #subsection_item_link

Methods included from LectureHelpers

#lecture_date, #lecture_number_str

Methods included from NavigationHelpers

#link_to_background, #link_to_cribsheet, #link_to_homework, #link_to_inclusion, #link_to_incubator, #link_to_intro, #link_to_lab, #link_to_lecture, #link_to_next, #link_to_next_lecture, #link_to_pa, #link_to_page, #link_to_prev, #link_to_project, #link_to_section, #link_to_slides, #link_to_topic

Methods included from ContentHelpers

#bold_red, #callout, #callout1, #callout2, #callout3, #carousel_v4, #cloudbadge, #code_begin, #code_end, #code_string, #codebadge, #deliverable, #deliverable_po, #deliverable_popdf, #discussion, #discussion_box, #discussion_box1, #homework_hdr, #iconbadge, #iconbadge1, #iconbadge2, #iconbadge3, #image, #important, #include_background, #include_code, #include_from_section, #include_image, #include_image_old, #include_intro, #include_page, #include_python, #include_ruby, #include_topic, #ir, #italic_red, #lab_note, #link_to_doc, #list_items, #lookup_nitem, #nb, #partbadge, #pdfbadge, #postit_begin, #postit_end, #python_begin, #python_end, #python_string, #ruby_begin, #ruby_end, #ruby_string, #slide, #source_begin, #source_end, #tbd, #team_deliverable, #teambadge, #textbadge, #timebadge, #toasty, #toc_link_to, #ul, #ul_begin, #ul_end, #zipbadge

Methods included from LoggingHelpers

#compiling, #log_item_info

Instance Method Details

#random_image(_style, width, height) ⇒ Object



18
19
20
# File 'lib/coursegen/course/helpers/visual_helpers.rb', line 18

def random_image(_style, width, height)
  "<img class=\"img-fluid\ w-100\" src=\"https://picsum.photos/#{width}/#{height}.jpg\" /> "
end