Class: Deplo::FromCommandLine
- Inherits:
-
Object
- Object
- Deplo::FromCommandLine
- Defined in:
- lib/deplo/from_command_line.rb
Direct Known Subclasses
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(title: nil, message: nil, content: nil) ⇒ FromCommandLine
constructor
A new instance of FromCommandLine.
- #set ⇒ Object
Constructor Details
#initialize(title: nil, message: nil, content: nil) ⇒ FromCommandLine
Returns a new instance of FromCommandLine.
3 4 5 6 7 8 9 |
# File 'lib/deplo/from_command_line.rb', line 3 def initialize( title: nil , message: nil , content: nil ) raise "Error" if [ title , ].all?( &:nil? ) @title = title @msg = @content = content @condition = false end |
Class Method Details
.set(*opt) ⇒ Object
23 24 25 |
# File 'lib/deplo/from_command_line.rb', line 23 def self.set( *opt ) self.new( *opt ).set end |