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
16 17 18 |
# File 'lib/ruby/rego/cli.rb', line 16 def config @config end |
#format ⇒ Object
Returns the value of attribute format
16 17 18 |
# File 'lib/ruby/rego/cli.rb', line 16 def format @format end |
#help ⇒ Object
Returns the value of attribute help
16 17 18 |
# File 'lib/ruby/rego/cli.rb', line 16 def help @help end |
#policy ⇒ Object
Returns the value of attribute policy
16 17 18 |
# File 'lib/ruby/rego/cli.rb', line 16 def policy @policy end |
#profile ⇒ Object
Returns the value of attribute profile
16 17 18 |
# File 'lib/ruby/rego/cli.rb', line 16 def profile @profile end |
#query ⇒ Object
Returns the value of attribute query
16 17 18 |
# File 'lib/ruby/rego/cli.rb', line 16 def query @query end |
#yaml_aliases ⇒ Object
Returns the value of attribute yaml_aliases
16 17 18 |
# File 'lib/ruby/rego/cli.rb', line 16 def yaml_aliases @yaml_aliases end |
Instance Method Details
#help? ⇒ Boolean
Check whether help output was requested.
23 24 25 |
# File 'lib/ruby/rego/cli.rb', line 23 def help? help end |
#profile? ⇒ Boolean
Check whether profiling output was requested.
30 31 32 |
# File 'lib/ruby/rego/cli.rb', line 30 def profile? profile end |