Class: MyScripts::Msdn

Inherits:
Script
  • Object
show all
Defined in:
lib/my_scripts/scripts/msdn.rb

Overview

This script converts text copied from MSND function or struct description into RDoc-compatible comment format. It also adds function and spec stub (both are used by Win gem). This reduces dramatically amount of manual work needed to convert MSDN info into RDoc

Constant Summary collapse

VERSION =
'0.0.1'

Instance Method Summary collapse

Methods inherited from Script

#error, #gets, #initialize, #puts, #system, #to_s, #usage, #version

Constructor Details

This class inherits a constructor from MyScripts::Script

Instance Method Details

#runObject



11
12
13
14
15
# File 'lib/my_scripts/scripts/msdn.rb', line 11

def run
  usage "[in_file] File containing MSDN text (reads from stdin if no infile)" if @argv.size > 1

  puts MsdnHelper.convert @argf.read
end