Module: GuideContainer
Instance Method Summary
collapse
Methods included from Container
#content_used_in?, #navigable_content_in, #progress_for
Instance Method Details
#attempts_left_for(assignment) ⇒ Object
Tells the number of remaning attemps for a given assignment that belongs to this container, or ‘nil`, if this container does not impose any limit to the number of submissions
35
36
37
|
# File 'app/models/concerns/guide_container.rb', line 35
def attempts_left_for(assignment)
nil
end
|
#friendly ⇒ Object
24
25
26
|
# File 'app/models/concerns/guide_container.rb', line 24
def friendly
defaulting_name { "#{navigable_parent.friendly}: #{name}" }
end
|
#index_usage!(organization = Organization.current) ⇒ Object
20
21
22
|
# File 'app/models/concerns/guide_container.rb', line 20
def index_usage!(organization = Organization.current)
organization.index_usage_of! guide, self
end
|
#limited_for?(_exercise) ⇒ Boolean
Tells if this guide container imposes any kind of limit to the number of submission to its assignments, which may depend on the exercise’s type
42
43
44
|
# File 'app/models/concerns/guide_container.rb', line 42
def limited_for?(_exercise)
false
end
|
#resettable? ⇒ Boolean
59
60
61
|
# File 'app/models/concerns/guide_container.rb', line 59
def resettable?
true
end
|
#results_hidden_for?(_exercise) ⇒ Boolean
Tells if this guide container hides the results for students
48
49
50
|
# File 'app/models/concerns/guide_container.rb', line 48
def results_hidden_for?(_exercise)
false
end
|
#start!(user) ⇒ Object
56
57
|
# File 'app/models/concerns/guide_container.rb', line 56
def start!(user)
end
|
#timed? ⇒ Boolean
52
53
54
|
# File 'app/models/concerns/guide_container.rb', line 52
def timed?
false
end
|
#validate_accessible_for!(user) ⇒ Object
28
29
|
# File 'app/models/concerns/guide_container.rb', line 28
def validate_accessible_for!(user)
end
|