Class: Interactive

Inherits:
Challenge show all
Includes:
Triable
Defined in:
app/models/exercise/interactive.rb

Instance Method Summary collapse

Methods included from Triable

#run_try!, #submit_try!

Methods inherited from Challenge

#extra, #extra_preview, #reset!

Methods inherited from Exercise

#description_context, #description_task, #ensure_type!, #friendly, #guide_done_for?, #import_from_json!, #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, #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

#assigned_to?, #assignment_for, #current_content_for, #default_content_for, #extra_for, #files_for, #find_or_init_assignment_for, #has_messages_for?, #interpolate_for, #last_submission_date_for, #messages_for, #replace_content_reference, #solved_by?, #status_for, #submissions_count_for

Methods included from FriendlyName

#friendly_name, #to_param

Methods included from WithDescription

#description_teaser

Methods inherited from ApplicationRecord

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

Instance Method Details

#console?Boolean

Returns:

  • (Boolean)


11
12
13
# File 'app/models/exercise/interactive.rb', line 11

def console?
  true
end

#hidden?Boolean

Returns:

  • (Boolean)


23
24
25
# File 'app/models/exercise/interactive.rb', line 23

def hidden?
  false
end

#queriable?Boolean

Returns:

  • (Boolean)


19
20
21
# File 'app/models/exercise/interactive.rb', line 19

def queriable?
  false
end

#stateful_console?Boolean

Returns:

  • (Boolean)


15
16
17
# File 'app/models/exercise/interactive.rb', line 15

def stateful_console?
  true
end

#upload?Boolean

Returns:

  • (Boolean)


27
28
29
# File 'app/models/exercise/interactive.rb', line 27

def upload?
  false
end