Module: Daddy::Formatter::DaddyHtml
- Included in:
- Html
- Defined in:
- lib/daddy/formatter/daddy_html.rb
Instance Method Summary collapse
Instance Method Details
#feature_dir(feature, short = false) ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
# File 'lib/daddy/formatter/daddy_html.rb', line 7 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 |
#should_expand ⇒ Object
28 29 30 31 32 |
# File 'lib/daddy/formatter/daddy_html.rb', line 28 def return false unless ENV['EXPAND'] return false if ['f', 'false'].include?(ENV['EXPAND'].downcase) true end |