Class: WebAssets::CommandLine
- Inherits:
-
Object
- Object
- WebAssets::CommandLine
- Defined in:
- lib/web_assets/command_line.rb
Instance Attribute Summary collapse
-
#arguments ⇒ Object
readonly
Returns the value of attribute arguments.
Instance Method Summary collapse
-
#initialize(arguments) ⇒ CommandLine
constructor
A new instance of CommandLine.
- #parse ⇒ Object
Constructor Details
#initialize(arguments) ⇒ CommandLine
Returns a new instance of CommandLine.
9 10 11 |
# File 'lib/web_assets/command_line.rb', line 9 def initialize arguments @arguments = arguments end |
Instance Attribute Details
#arguments ⇒ Object (readonly)
Returns the value of attribute arguments.
7 8 9 |
# File 'lib/web_assets/command_line.rb', line 7 def arguments @arguments end |
Instance Method Details
#parse ⇒ Object
13 14 15 16 17 |
# File 'lib/web_assets/command_line.rb', line 13 def parse = {libs: [], debug: false} parser().parse! arguments end |