Advertisement
philippxp

Import.rb

Aug 25th, 2011
211
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.25 KB | None | 0 0
  1. require 'Parser.rb'
  2.  
  3. class Import < Parser
  4.  
  5.   @regex
  6.   def initialize(headerFile)
  7.     super(headerFile)
  8.     @regex = Regexp.new('(\/\*!)(.*)(\*\/)')
  9.   end
  10.  
  11.   def parse
  12.     puts "Parsing..."
  13.     return @currentHeaderFile.scan(@regex)
  14.   end
  15.  
  16. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement