Module: Ankit::CardNaming

Instance Method Summary collapse

Instance Method Details

#card_wildcard_for(dir) ⇒ Object



65
# File 'lib/ankit/card.rb', line 65

def card_wildcard_for(dir) File.join(dir, "*.card"); end

#to_card_name(path) ⇒ Object



63
# File 'lib/ankit/card.rb', line 63

def to_card_name(path) File.basename(path, ".card"); end

#to_card_path(dir, name) ⇒ Object



64
# File 'lib/ankit/card.rb', line 64

def to_card_path(dir, name) File.join(dir, "#{name}.card"); end