Class: AppRelease::Parser
- Inherits:
-
Object
- Object
- AppRelease::Parser
- Defined in:
- lib/app_release/parser.rb
Instance Attribute Summary collapse
-
#args ⇒ Object
readonly
Returns the value of attribute args.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(args) ⇒ Parser
constructor
A new instance of Parser.
- #parse ⇒ Object
Constructor Details
#initialize(args) ⇒ Parser
Returns a new instance of Parser.
16 17 18 |
# File 'lib/app_release/parser.rb', line 16 def initialize(args) @args = args end |
Instance Attribute Details
#args ⇒ Object (readonly)
Returns the value of attribute args.
10 11 12 |
# File 'lib/app_release/parser.rb', line 10 def args @args end |
Class Method Details
.parse(args) ⇒ Object
12 13 14 |
# File 'lib/app_release/parser.rb', line 12 def self.parse(args) new(args).parse end |
Instance Method Details
#parse ⇒ Object
20 21 22 23 24 |
# File 'lib/app_release/parser.rb', line 20 def parse parser.parse!(args) rescue StandardError => e AppRelease::Console.danger("Ambiguously completable string is encountered\n#{e}") end |