Sha256: fe14e11273c48112c6deca9ca102e28e1f3e7b4006ed6e1c89d26938322708b5
Contents?: true
Size: 750 Bytes
Versions: 16
Compression:
Stored size: 750 Bytes
Contents
# coding: UTF-8 module Daddy module Formatter module DaddyHtml def feature_dir(feature, short = false) ret = '' split = feature.file.split('/') split.reverse[1..-1].each_with_index do |dir, i| break if dir == '仕様書' or dir == '開発日記' if i == 0 if short ret = dir.split('.').first + '.' else ret = dir end else ret = dir.split('.').first + '.' + ret end end ret end def should_expand return false unless ENV['EXPAND'] return false if ['f', 'false'].include?(ENV['EXPAND'].downcase) true end end end end
Version data entries
16 entries across 16 versions & 1 rubygems