Module: CmpFS::Compare

Extended by:
CmpFS_Compare_Methods
Includes:
CmpFS_Compare_Methods
Defined in:
lib/cmpfs/compare.rb,
lib/cmpfs/compare/api_2.rb,
lib/cmpfs/compare/api_1_9.rb,
lib/cmpfs/compare/text/internal_.rb,
lib/cmpfs/compare/binary/internal_.rb

Overview

The comparison module, which may be used directly, and which may be extended or included

Important functions:

  • CmpFS::Compare.compare_binary_files()

  • CmpFS::Compare.compare_binary_streams()

  • CmpFS::Compare.compare_binary()

  • CmpFS::Compare.compare_text_files()

  • CmpFS::Compare.compare_text_streams()

  • CmpFS::Compare.compare_text()

Defined Under Namespace

Modules: Binary, CmpFS_Compare_Methods, Text

Class Method Summary collapse

Methods included from CmpFS_Compare_Methods

compare_binary, compare_binary_files, compare_binary_streams, compare_text, compare_text_files, compare_text_streams

Class Method Details

.extended(receiver) ⇒ Object



78
79
80
81
82
83
84
85
86
# File 'lib/cmpfs/compare.rb', line 78

def self.extended receiver

  receiver.class_eval do

    extend CmpFS_Compare_Methods
  end

  $stderr.puts "#{receiver} extended by #{CmpFS_Compare_Methods}" if $DEBUG
end

.included(receiver) ⇒ Object



88
89
90
91
92
93
94
95
96
# File 'lib/cmpfs/compare.rb', line 88

def self.included receiver

  receiver.class_eval do

    include CmpFS_Compare_Methods
  end

  $stderr.puts "#{receiver} included #{CmpFS_Compare_Methods}" if $DEBUG
end