Sha256: 91466dcbede93ba5a2d6b2abd36f5e8ee18d27ac26c13d1e602f5ae8705aa659
Contents?: true
Size: 279 Bytes
Versions: 1
Compression:
Stored size: 279 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.1 | lib/nameq/support/string_entry.rb |