Class: Prebundler::Cli::Base
- Inherits:
-
Object
- Object
- Prebundler::Cli::Base
- Defined in:
- lib/prebundler/cli/base.rb
Instance Attribute Summary collapse
-
#args ⇒ Object
readonly
Returns the value of attribute args.
-
#global_options ⇒ Object
readonly
Returns the value of attribute global_options.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
-
#out ⇒ Object
readonly
Returns the value of attribute out.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(out, global_options, options, args) ⇒ Base
constructor
A new instance of Base.
- #run ⇒ Object
Constructor Details
#initialize(out, global_options, options, args) ⇒ Base
Returns a new instance of Base.
12 13 14 15 16 17 |
# File 'lib/prebundler/cli/base.rb', line 12 def initialize(out, , , args) @out = out @global_options = @options = @args = args end |
Instance Attribute Details
#args ⇒ Object (readonly)
Returns the value of attribute args.
10 11 12 |
# File 'lib/prebundler/cli/base.rb', line 10 def args @args end |
#global_options ⇒ Object (readonly)
Returns the value of attribute global_options.
10 11 12 |
# File 'lib/prebundler/cli/base.rb', line 10 def @global_options end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
10 11 12 |
# File 'lib/prebundler/cli/base.rb', line 10 def @options end |
#out ⇒ Object (readonly)
Returns the value of attribute out.
10 11 12 |
# File 'lib/prebundler/cli/base.rb', line 10 def out @out end |
Class Method Details
.run(out, global_options, options, args) ⇒ Object
5 6 7 |
# File 'lib/prebundler/cli/base.rb', line 5 def run(out, , , args) new(out, , , args).run end |
Instance Method Details
#run ⇒ Object
19 20 21 |
# File 'lib/prebundler/cli/base.rb', line 19 def run raise NotImplementedError, "please define '#{__method__}' in derived classes" end |