Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- require 'Parser.rb'
- class Import < Parser
- @regex
- def initialize(headerFile)
- super(headerFile)
- @regex = Regexp.new('(\/\*!)(.*)(\*\/)')
- end
- def parse
- puts "Parsing..."
- return @currentHeaderFile.scan(@regex)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement