Method: Cardname::Manipulate#prepend_joint

Defined in:
lib/cardname/manipulate.rb

#prepend_jointObject Also known as: to_field



39
40
41
42
# File 'lib/cardname/manipulate.rb', line 39

def prepend_joint
  joint = self.class.joint
  self =~ /^#{Regexp.escape joint}/ ? self : (joint + self)
end