Module: Boson::Command::Science
- Included in:
- Boson::Command
- Defined in:
- lib/boson/science.rb,
lib/boson/science.rb
Instance Method Summary collapse
- #after_initialize(hash) ⇒ Object
- #make_option_command(lib = library) ⇒ Object
- #option_command? ⇒ Boolean
-
#render_option_parser ⇒ Object
Option parser for command as defined by @render_options.
Instance Method Details
#after_initialize(hash) ⇒ Object
202 203 204 205 206 207 |
# File 'lib/boson/science.rb', line 202 def after_initialize(hash) if hash[:render_options] && (@render_options = hash.delete(:render_options))[:output_class] @render_options = Util.recursive_hash_merge View.class_config(@render_options[:output_class]), @render_options end super end |
#make_option_command(lib = library) ⇒ Object
184 185 186 187 |
# File 'lib/boson/science.rb', line 184 def make_option_command(lib=library) @option_command = true @args = [['*args']] unless args(lib) || arg_size end |
#option_command? ⇒ Boolean
189 190 191 |
# File 'lib/boson/science.rb', line 189 def option_command? super || end |