Module: Plagiarism

Extended by:
Plagiarism
Included in:
Plagiarism
Defined in:
lib/plagiarism.rb,
lib/plagiarism/cli.rb,
lib/plagiarism/config.rb,
lib/plagiarism/version.rb,
lib/plagiarism/strategy.rb,
lib/plagiarism/strategries/bing.rb,
lib/plagiarism/strategries/duck.rb,
lib/plagiarism/strategries/yahoo.rb,
lib/plagiarism/strategries/engine.rb,
lib/plagiarism/strategries/google.rb

Defined Under Namespace

Modules: Config, Strategies, Strategy Classes: Cli

Constant Summary collapse

VERSION =
"0.0.11"

Instance Method Summary collapse

Instance Method Details

#configure {|Config| ... } ⇒ Object

Yields:



15
16
17
# File 'lib/plagiarism.rb', line 15

def configure
  yield Config
end

#match(content, params = {}) ⇒ Object



23
24
25
# File 'lib/plagiarism.rb', line 23

def match(content, params = {})
  Strategy.match(content, params)
end

#unique?(content, params = {}) ⇒ Boolean

Returns:

  • (Boolean)


19
20
21
# File 'lib/plagiarism.rb', line 19

def unique?(content, params = {})
  Strategy.unique?(content, params)
end