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

Version Path
daddy-0.1.5 lib/daddy/formatter/daddy_html.rb
daddy-0.1.4 lib/daddy/formatter/daddy_html.rb
daddy-0.1.3 lib/daddy/formatter/daddy_html.rb
daddy-0.1.2 lib/daddy/formatter/daddy_html.rb
daddy-0.1.1 lib/daddy/formatter/daddy_html.rb
daddy-0.1.0 lib/daddy/formatter/daddy_html.rb
daddy-0.0.22 lib/daddy/formatter/daddy_html.rb
daddy-0.0.21 lib/daddy/formatter/daddy_html.rb
daddy-0.0.20 lib/daddy/formatter/daddy_html.rb
daddy-0.0.19 lib/daddy/formatter/daddy_html.rb
daddy-0.0.18 lib/daddy/formatter/daddy_html.rb
daddy-0.0.17 lib/daddy/formatter/daddy_html.rb
daddy-0.0.16 lib/daddy/formatter/daddy_html.rb
daddy-0.0.15 lib/daddy/formatter/daddy_html.rb
daddy-0.0.14 lib/daddy/formatter/daddy_html.rb
daddy-0.0.13 lib/daddy/formatter/daddy_html.rb