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.76 tracks/ruby/lib/generator/exercise.rb
trackler-2.2.1.75 tracks/ruby/lib/generator/exercise.rb
trackler-2.2.1.74 tracks/ruby/lib/generator/exercise.rb
trackler-2.2.1.73 tracks/ruby/lib/generator/exercise.rb
trackler-2.2.1.72 tracks/ruby/lib/generator/exercise.rb
trackler-2.2.1.71 tracks/ruby/lib/generator/exercise.rb
trackler-2.2.1.70 tracks/ruby/lib/generator/exercise.rb
trackler-2.2.1.69 tracks/ruby/lib/generator/exercise.rb
trackler-2.2.1.68 tracks/ruby/lib/generator/exercise.rb
trackler-2.2.1.67 tracks/ruby/lib/generator/exercise.rb
trackler-2.2.1.66 tracks/ruby/lib/generator/exercise.rb
trackler-2.2.1.65 tracks/ruby/lib/generator/exercise.rb
trackler-2.2.1.64 tracks/ruby/lib/generator/exercise.rb
trackler-2.2.1.63 tracks/ruby/lib/generator/exercise.rb
trackler-2.2.1.62 tracks/ruby/lib/generator/exercise.rb
trackler-2.2.1.61 tracks/ruby/lib/generator/exercise.rb
trackler-2.2.1.60 tracks/ruby/lib/generator/exercise.rb
trackler-2.2.1.59 tracks/ruby/lib/generator/exercise.rb
trackler-2.2.1.58 tracks/ruby/lib/generator/exercise.rb
trackler-2.2.1.57 tracks/ruby/lib/generator/exercise.rb