Module: Hoe::Flay

### Home Classes Methods

### In Files

- lib/hoe/flay.rb

### Methods

- #define_flay_tasks
- #initialize_flay

### Files

- History.rdoc
- Manifest.txt

### Class/Module Index

Quicksearch

- Hoe
- Hoe::Clean
- Hoe::Compiler
- Hoe::Debug
- Hoe::Deps
- Hoe::Flay
- Hoe::Flog
- Hoe::GemPreludeSucks
- Hoe::Gemcutter
- Hoe::Inline
- Hoe::Newb
- Hoe::Package
- Hoe::Publish
- Hoe::RCov
- Hoe::Racc
- Hoe::Rdoc
- Hoe::Signing
- Hoe::Test
- Rake
- Rake::Task
- Rake::TaskManager
- File
- Object
- String

No matching classes.

# Hoe::Flay

Flay plugin for hoe.

### Tasks Provided:

flay | Analyze for code duplication.

### Attributes

flay_threshold[RW]

Optional: flay threshold to determine threshold failure. [default: 1200-100]

### Public Instance Methods

define_flay_tasks() click to toggle source

Define tasks for plugin.

    # File lib/hoe/flay.rb, line 24
    def define_flay_tasks
      require "flay_task"
      FlayTask.new :flay, self.flay_threshold
    rescue Exception
      # skip
    end

initialize_flay() click to toggle source

Initialize variables for plugin.

    # File lib/hoe/flay.rb, line 17
    def initialize_flay
      self.flay_threshold ||= timebomb 1200, 100  # 80% of average :(
    end

[Validate]

Generated with the Darkfish Rdoc Generator 2.