Class: RegoValidate::Options
- Inherits:
-
Struct
- Object
- Struct
- RegoValidate::Options
- Defined in:
- lib/ruby/rego/cli.rb,
lib/ruby/rego/cli.rb
Overview
CLI option values.
Instance Attribute Summary collapse
-
#config ⇒ Object
Returns the value of attribute config.
-
#format ⇒ Object
Returns the value of attribute format.
-
#help ⇒ Object
Returns the value of attribute help.
-
#policy ⇒ Object
Returns the value of attribute policy.
-
#profile ⇒ Object
Returns the value of attribute profile.
-
#query ⇒ Object
Returns the value of attribute query.
-
#yaml_aliases ⇒ Object
Returns the value of attribute yaml_aliases.
Instance Method Summary collapse
-
#help? ⇒ Boolean
Check whether help output was requested.
-
#profile? ⇒ Boolean
Check whether profiling output was requested.
Instance Attribute Details
#config ⇒ Object
Returns the value of attribute config
11 12 13 |
# File 'lib/ruby/rego/cli.rb', line 11 def config @config end |
#format ⇒ Object
Returns the value of attribute format
11 12 13 |
# File 'lib/ruby/rego/cli.rb', line 11 def format @format end |
#help ⇒ Object
Returns the value of attribute help
11 12 13 |
# File 'lib/ruby/rego/cli.rb', line 11 def help @help end |
#policy ⇒ Object
Returns the value of attribute policy
11 12 13 |
# File 'lib/ruby/rego/cli.rb', line 11 def policy @policy end |
#profile ⇒ Object
Returns the value of attribute profile
11 12 13 |
# File 'lib/ruby/rego/cli.rb', line 11 def profile @profile end |
#query ⇒ Object
Returns the value of attribute query
11 12 13 |
# File 'lib/ruby/rego/cli.rb', line 11 def query @query end |
#yaml_aliases ⇒ Object
Returns the value of attribute yaml_aliases
11 12 13 |
# File 'lib/ruby/rego/cli.rb', line 11 def yaml_aliases @yaml_aliases end |
Instance Method Details
#help? ⇒ Boolean
Check whether help output was requested.
18 19 20 |
# File 'lib/ruby/rego/cli.rb', line 18 def help? help end |
#profile? ⇒ Boolean
Check whether profiling output was requested.
25 26 27 |
# File 'lib/ruby/rego/cli.rb', line 25 def profile? profile end |