Class: Appydave::Tools::AppContext::Options
- Inherits:
-
Object
- Object
- Appydave::Tools::AppContext::Options
- Defined in:
- lib/appydave/tools/app_context/options.rb
Overview
Options struct for app context query tool
Instance Attribute Summary collapse
-
#app_names ⇒ Object
Returns the value of attribute app_names.
-
#debug_level ⇒ Object
Returns the value of attribute debug_level.
-
#glob_names ⇒ Object
Returns the value of attribute glob_names.
-
#list ⇒ Object
Returns the value of attribute list.
-
#list_apps ⇒ Object
Returns the value of attribute list_apps.
-
#meta ⇒ Object
Returns the value of attribute meta.
-
#pattern_filter ⇒ Object
Returns the value of attribute pattern_filter.
Instance Method Summary collapse
-
#initialize ⇒ Options
constructor
A new instance of Options.
- #query? ⇒ Boolean
Constructor Details
#initialize ⇒ Options
Returns a new instance of Options.
12 13 14 15 16 17 18 19 20 |
# File 'lib/appydave/tools/app_context/options.rb', line 12 def initialize @app_names = [] @glob_names = [] @pattern_filter = nil @meta = false @list = false @list_apps = false @debug_level = 'none' end |
Instance Attribute Details
#app_names ⇒ Object
Returns the value of attribute app_names.
8 9 10 |
# File 'lib/appydave/tools/app_context/options.rb', line 8 def app_names @app_names end |
#debug_level ⇒ Object
Returns the value of attribute debug_level.
8 9 10 |
# File 'lib/appydave/tools/app_context/options.rb', line 8 def debug_level @debug_level end |
#glob_names ⇒ Object
Returns the value of attribute glob_names.
8 9 10 |
# File 'lib/appydave/tools/app_context/options.rb', line 8 def glob_names @glob_names end |
#list ⇒ Object
Returns the value of attribute list.
8 9 10 |
# File 'lib/appydave/tools/app_context/options.rb', line 8 def list @list end |
#list_apps ⇒ Object
Returns the value of attribute list_apps.
8 9 10 |
# File 'lib/appydave/tools/app_context/options.rb', line 8 def list_apps @list_apps end |
#meta ⇒ Object
Returns the value of attribute meta.
8 9 10 |
# File 'lib/appydave/tools/app_context/options.rb', line 8 def @meta end |
#pattern_filter ⇒ Object
Returns the value of attribute pattern_filter.
8 9 10 |
# File 'lib/appydave/tools/app_context/options.rb', line 8 def pattern_filter @pattern_filter end |
Instance Method Details
#query? ⇒ Boolean
22 23 24 |
# File 'lib/appydave/tools/app_context/options.rb', line 22 def query? app_names.any? || !pattern_filter.nil? end |