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.137 tracks/ruby/lib/generator/exercise.rb
trackler-2.2.1.136 tracks/ruby/lib/generator/exercise.rb
trackler-2.2.1.135 tracks/ruby/lib/generator/exercise.rb
trackler-2.2.1.134 tracks/ruby/lib/generator/exercise.rb
trackler-2.2.1.133 tracks/ruby/lib/generator/exercise.rb
trackler-2.2.1.132 tracks/ruby/lib/generator/exercise.rb
trackler-2.2.1.131 tracks/ruby/lib/generator/exercise.rb
trackler-2.2.1.130 tracks/ruby/lib/generator/exercise.rb
trackler-2.2.1.129 tracks/ruby/lib/generator/exercise.rb
trackler-2.2.1.128 tracks/ruby/lib/generator/exercise.rb
trackler-2.2.1.127 tracks/ruby/lib/generator/exercise.rb
trackler-2.2.1.126 tracks/ruby/lib/generator/exercise.rb
trackler-2.2.1.125 tracks/ruby/lib/generator/exercise.rb
trackler-2.2.1.124 tracks/ruby/lib/generator/exercise.rb
trackler-2.2.1.123 tracks/ruby/lib/generator/exercise.rb
trackler-2.2.1.122 tracks/ruby/lib/generator/exercise.rb
trackler-2.2.1.121 tracks/ruby/lib/generator/exercise.rb
trackler-2.2.1.120 tracks/ruby/lib/generator/exercise.rb
trackler-2.2.1.119 tracks/ruby/lib/generator/exercise.rb
trackler-2.2.1.118 tracks/ruby/lib/generator/exercise.rb