Class: BitGirder::Core::AbstractApplication
- Inherits:
-
BitGirderClass
- Object
- BitGirderClass
- BitGirder::Core::AbstractApplication
- Defined in:
- lib/bitgirder/core.rb
Constant Summary
Constants included from BitGirderMethods
BitGirderMethods::PARAM_TYPE_ARG, BitGirderMethods::PARAM_TYPE_ENVVAR, BitGirderMethods::PARAM_TYPE_KEY
Instance Attribute Summary collapse
-
#argv_remain ⇒ Object
readonly
Returns the value of attribute argv_remain.
-
#run_ctx ⇒ Object
readonly
Returns the value of attribute run_ctx.
-
#verbose ⇒ Object
Returns the value of attribute verbose.
Instance Method Summary collapse
Methods included from BitGirderMethods
argv_to_argh, check_fail_prefix, class_name_to_sym, code, compares_to, console, ext_to_class_name, ext_to_sym, has_env, has_key, has_keys, nonnegative, not_nil, positive, raisef, set_from_key, set_var, split_argv, sym_to_cli_switch, sym_to_ext_id, to_bool, unpack_argv_array, unpack_argv_hash, warn
Methods included from BitGirderStructure
Instance Attribute Details
#argv_remain ⇒ Object (readonly)
Returns the value of attribute argv_remain.
1183 1184 1185 |
# File 'lib/bitgirder/core.rb', line 1183 def argv_remain @argv_remain end |
#run_ctx ⇒ Object (readonly)
Returns the value of attribute run_ctx.
1183 1184 1185 |
# File 'lib/bitgirder/core.rb', line 1183 def run_ctx @run_ctx end |
#verbose ⇒ Object
Returns the value of attribute verbose.
1184 1185 1186 |
# File 'lib/bitgirder/core.rb', line 1184 def verbose @verbose end |
Instance Method Details
#run(run_ctx) ⇒ Object
1192 1193 1194 1195 1196 1197 1198 1199 |
# File 'lib/bitgirder/core.rb', line 1192 def run( run_ctx ) @run_ctx = run_ctx @argv_remain = run_ctx[ :argv_remain ] || [] @verbose = run_ctx[ :verbose ] impl_run end |
#verbose? ⇒ Boolean
1187 1188 1189 |
# File 'lib/bitgirder/core.rb', line 1187 def verbose? @verbose end |