Module: Wdiff
- Defined in:
- lib/wdiff.rb
Defined Under Namespace
Modules: Helper
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.bin_path ⇒ Object
10 11 12 |
# File 'lib/wdiff.rb', line 10 def bin_path 'wdiff' end |
.included(target) ⇒ Object
3 4 5 |
# File 'lib/wdiff.rb', line 3 def included(target) verify_wdiff_in_path end |
.verify_wdiff_in_path ⇒ Object
6 7 8 9 |
# File 'lib/wdiff.rb', line 6 def verify_wdiff_in_path path = %x{which #{bin_path}} raise "GNU wdiff (http://www.gnu.org/software/wdiff/) not found in $PATH" if path.empty? end |