Sha256: 6be924aecb6b0ef7140075586f1305ee8d8a29522d850a041104815d145d4355

Contents?: true

Size: 266 Bytes

Versions: 163

Compression:

Stored size: 266 Bytes

Contents

module Generator
  class Exercise
    using Generator::Underscore

    attr_reader :slug

    def initialize(slug:)
      @slug = slug
    end

    def name
      @name ||= slug.underscore
    end

    def case_class
      slug.camel_case + 'Case'
    end
  end
end

Version data entries

163 entries across 163 versions & 1 rubygems

Version Path
trackler-2.2.1.96 tracks/ruby/lib/generator/exercise.rb
trackler-2.2.1.95 tracks/ruby/lib/generator/exercise.rb
trackler-2.2.1.94 tracks/ruby/lib/generator/exercise.rb
trackler-2.2.1.93 tracks/ruby/lib/generator/exercise.rb
trackler-2.2.1.92 tracks/ruby/lib/generator/exercise.rb
trackler-2.2.1.91 tracks/ruby/lib/generator/exercise.rb
trackler-2.2.1.90 tracks/ruby/lib/generator/exercise.rb
trackler-2.2.1.89 tracks/ruby/lib/generator/exercise.rb
trackler-2.2.1.88 tracks/ruby/lib/generator/exercise.rb
trackler-2.2.1.87 tracks/ruby/lib/generator/exercise.rb
trackler-2.2.1.86 tracks/ruby/lib/generator/exercise.rb
trackler-2.2.1.85 tracks/ruby/lib/generator/exercise.rb
trackler-2.2.1.84 tracks/ruby/lib/generator/exercise.rb
trackler-2.2.1.83 tracks/ruby/lib/generator/exercise.rb
trackler-2.2.1.82 tracks/ruby/lib/generator/exercise.rb
trackler-2.2.1.81 tracks/ruby/lib/generator/exercise.rb
trackler-2.2.1.80 tracks/ruby/lib/generator/exercise.rb
trackler-2.2.1.79 tracks/ruby/lib/generator/exercise.rb
trackler-2.2.1.78 tracks/ruby/lib/generator/exercise.rb
trackler-2.2.1.77 tracks/ruby/lib/generator/exercise.rb