Class: PlantumlBuilder::Cli::Args
- Inherits:
-
Object
- Object
- PlantumlBuilder::Cli::Args
- Defined in:
- lib/plantuml_builder/cli/args.rb
Instance Method Summary collapse
- #destination ⇒ Object
- #destination_dir ⇒ Object
- #endpoint ⇒ Object
-
#initialize(args_hash) ⇒ Args
constructor
A new instance of Args.
- #png? ⇒ Boolean
- #recursive? ⇒ Boolean
- #source ⇒ Object
- #source_dir ⇒ Object
- #svg? ⇒ Boolean
- #txt? ⇒ Boolean
- #version? ⇒ Boolean
Constructor Details
#initialize(args_hash) ⇒ Args
Returns a new instance of Args.
4 5 6 |
# File 'lib/plantuml_builder/cli/args.rb', line 4 def initialize(args_hash) self.args_hash = args_hash end |
Instance Method Details
#destination ⇒ Object
24 25 26 |
# File 'lib/plantuml_builder/cli/args.rb', line 24 def destination args_hash['<destination>'] end |
#destination_dir ⇒ Object
36 37 38 |
# File 'lib/plantuml_builder/cli/args.rb', line 36 def destination_dir args_hash["<destination_dir>"] end |
#endpoint ⇒ Object
44 45 46 |
# File 'lib/plantuml_builder/cli/args.rb', line 44 def endpoint args_hash['--endpoint'] end |
#png? ⇒ Boolean
12 13 14 |
# File 'lib/plantuml_builder/cli/args.rb', line 12 def png? args_hash['png'] end |
#recursive? ⇒ Boolean
28 29 30 |
# File 'lib/plantuml_builder/cli/args.rb', line 28 def recursive? args_hash['-R'] end |
#source ⇒ Object
20 21 22 |
# File 'lib/plantuml_builder/cli/args.rb', line 20 def source args_hash['<source>'] end |
#source_dir ⇒ Object
32 33 34 |
# File 'lib/plantuml_builder/cli/args.rb', line 32 def source_dir args_hash["<source_dir>"] end |
#svg? ⇒ Boolean
8 9 10 |
# File 'lib/plantuml_builder/cli/args.rb', line 8 def svg? args_hash['svg'] end |
#txt? ⇒ Boolean
16 17 18 |
# File 'lib/plantuml_builder/cli/args.rb', line 16 def txt? args_hash['txt'] end |
#version? ⇒ Boolean
40 41 42 |
# File 'lib/plantuml_builder/cli/args.rb', line 40 def version? args_hash['--version'] end |