Sha256: b12ea60cc4445b8623b967aac7a92cacd54bbfd1b699147c1d3206c83085371b

Contents?: true

Size: 349 Bytes

Versions: 61

Compression:

Stored size: 349 Bytes

Contents

class Challenge < Exercise
  include WithLayout

  markdown_on :hint

  def reset!
    super
    self.layout = self.class.default_layout
  end

  def extra(*)
    [guide.extra, super]
      .compact
      .join("\n")
      .strip
      .ensure_newline
  end

  private

  def defaults
    super
    self.layout = self.class.default_layout
  end
end

Version data entries

61 entries across 61 versions & 2 rubygems

Version Path
mumuki-domain-7.6.1 app/models/exercise/challenge.rb
mumuki-domain-7.6.0 app/models/exercise/challenge.rb
mumuki-laboratory-7.5.2 vendor/bundle/ruby/2.6.0/bundler/gems/mumuki-domain-ad16a5930cec/app/models/exercise/challenge.rb
mumuki-laboratory-7.5.1 vendor/bundle/ruby/2.3.0/bundler/gems/mumuki-domain-a059418e5fd8/app/models/exercise/challenge.rb
mumuki-domain-7.5.1 app/models/exercise/challenge.rb
mumuki-laboratory-7.5.0 vendor/bundle/ruby/2.6.0/bundler/gems/mumuki-domain-acb12583b793/app/models/exercise/challenge.rb
mumuki-domain-7.5.0 app/models/exercise/challenge.rb
mumuki-domain-7.4.1 app/models/exercise/challenge.rb
mumuki-domain-7.4.0 app/models/exercise/challenge.rb
mumuki-domain-7.3.2 app/models/exercise/challenge.rb
mumuki-domain-7.3.1 app/models/exercise/challenge.rb
mumuki-domain-7.2.3 app/models/exercise/challenge.rb
mumuki-domain-7.3.0 app/models/exercise/challenge.rb
mumuki-domain-7.2.2 app/models/exercise/challenge.rb
mumuki-domain-7.2.1 app/models/exercise/challenge.rb
mumuki-domain-7.2.0 app/models/exercise/challenge.rb
mumuki-laboratory-7.1.0 vendor/bundle/ruby/2.3.0/bundler/gems/mumuki-domain-925adf85cca8/app/models/exercise/challenge.rb
mumuki-domain-7.1.0 app/models/exercise/challenge.rb
mumuki-laboratory-7.0.12 vendor/bundle/ruby/2.3.0/bundler/gems/mumuki-domain-74da3d4af98c/app/models/exercise/challenge.rb
mumuki-domain-7.0.6 app/models/exercise/challenge.rb