Sha256: 959dfd55bf8d800654adddee338a112345a7e009dedf7a818b4500aa70955221

Contents?: true

Size: 214 Bytes

Versions: 1

Compression:

Stored size: 214 Bytes

Contents

module TCity
  class BuildType
    attr_reader :name

    def initialize(name)
      @name = name
    end

    def label
      @name.downcase.gsub(/[^a-z]/, '_').gsub(/_+/, '_').gsub(/^_|_$/, '')
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
tcity-0.0.1a lib/tcity/build_type.rb