class NameQ::Support::StringEntry
Public Class Methods
new(text)
click to toggle source
# File lib/nameq/support/string_entry.rb, line 6 def initialize(text) @text = text end
Public Instance Methods
resolve(suffix = nil)
click to toggle source
# File lib/nameq/support/string_entry.rb, line 10 def resolve(suffix = nil) return @text if suffix.nil? "#{suffix.strip(@text)}#{suffix}" end