Module: GrepInit
Overview
Common initialization of Grep/W3MGrep class.
Instance Method Summary collapse
Instance Method Details
#init(x = {}) ⇒ Object
337 338 339 340 341 342 343 344 345 346 347 |
# File 'lib/langhelp/langhelp-base.rb', line 337 def init(x={}) if x[:regexp] # new version @regexp = x[:regexp] @src = arg1 else # deprecated @regexp = arg1 @src = x[:src] end @exclude = mkarray(x[:exclude]) normalize_filename! @src end |