Sha256: dbed220500183445d722eda799ac828af137f5856e4079e3dcfbb71ca3fb47cd

Contents?: true

Size: 190 Bytes

Versions: 4

Compression:

Stored size: 190 Bytes

Contents

class Gutentag::TagName
  def self.call(name)
    new(name).to_s
  end

  def initialize(name)
    @name = name
  end

  def to_s
    name.downcase
  end

  private

  attr_reader :name
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
gutentag-0.8.0 lib/gutentag/tag_name.rb
gutentag-0.7.0 lib/gutentag/tag_name.rb
gutentag-0.6.0 lib/gutentag/tag_name.rb
gutentag-0.5.1 lib/gutentag/tag_name.rb