Class: UsageMod::FileReadLinesPlugin
- Inherits:
-
ArgumentParserPlugin
- Object
- ArgumentParserPlugin
- UsageMod::FileReadLinesPlugin
- Defined in:
- lib/Usage.rb
Instance Attribute Summary
Attributes inherited from ArgumentParserPlugin
Instance Method Summary collapse
-
#initialize(usage_ui, str) ⇒ FileReadLinesPlugin
constructor
A new instance of FileReadLinesPlugin.
Methods inherited from ArgumentParserPlugin
Constructor Details
#initialize(usage_ui, str) ⇒ FileReadLinesPlugin
Returns a new instance of FileReadLinesPlugin.
515 516 517 518 519 520 521 522 |
# File 'lib/Usage.rb', line 515 def initialize(usage_ui, str) $TRACE.debug 5, "trying to open file '#{str}' for read lines" if FileTest.exist?(str) then @value = File.readlines(str) else raise InvalidInputFilenameError.new(str) end end |