Class: Reading

Inherits:
Exercise show all
Includes:
Confirmable
Defined in:
app/models/exercise/reading.rb

Instance Attribute Summary

Attributes included from WithEditionMode

#edition_mode

Instance Method Summary collapse

Methods included from Confirmable

#submit_confirmation!

Methods inherited from Exercise

#choice_index_for, #choice_values, #console?, #custom?, #default_content, #description_context, #description_task, #ensure_type!, #files_for, #friendly, #guide_done_for?, #import_from_resource_h!, #inspection_keywords, #limited?, #messages_path_for, #messages_url_for, #new_solution, #pending_siblings_for, #previous, #reclassify!, #reset!, #search_tags, #sibling_at, #slug, #slug_parts, #splitted_description, #structural_parent, #submission_for, #to_resource_h, #try_submit_solution!, #used_in?

Methods included from SiblingsNavigation

#navigable_name, #next_for, #restart

Methods included from ParentNavigation

#leave, #navigable_name, #navigable_parent, #navigation_end?

Methods included from Submittable

#find_assignment_and_submit!, #submit!

Methods included from Questionable

#submit_question!

Methods included from WithAssignments

#assignment_for, #find_assignment_for, #has_messages_for?, #messages_for, #status_for

Methods included from FriendlyName

#friendly_name, #to_param

Methods included from Assistable

#assist_with, #assistant

Methods included from WithRandomizations

#randomizer, #seed, #seed_with!

Methods included from WithDiscussions

#discuss!, #submission_for, #try_solve_discussions

Methods included from WithEditionMode

#edit!

Methods included from WithDescription

#description_teaser

Methods inherited from ApplicationRecord

aggregate_of, all_except, defaults, numbered, #save, #save_and_notify!, #save_and_notify_changes!, serialize_symbolized_hash_array, #update_and_notify!, update_or_create!, whitelist_attributes

Instance Method Details

#input_kids?Boolean

Returns:

  • (Boolean)


10
11
12
# File 'app/models/exercise/reading.rb', line 10

def input_kids?
  false
end

#layoutObject



6
7
8
# File 'app/models/exercise/reading.rb', line 6

def layout
  :input_bottom
end

#queriable?Boolean

Returns:

  • (Boolean)


14
15
16
# File 'app/models/exercise/reading.rb', line 14

def queriable?
  false
end