Sha256: e7e36f9c38189fa22ed9d60edd61b34531438bf87666234cf0131f1a146e43ae
Contents?: true
Size: 280 Bytes
Versions: 1
Compression:
Stored size: 280 Bytes
Contents
# frozen_string_literal: true module NameQ module Support class StringEntry def initialize(text) @text = text end def resolve(suffix = nil) return @text if suffix.nil? "#{suffix.strip(@text)}#{suffix}" end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
nameq-0.0.3 | lib/nameq/support/string_entry.rb |