Module: Boson::Command::ScienceClassMethods

Included in:
Boson::Command
Defined in:
lib/boson/science.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#all_option_commandsObject

Returns the value of attribute all_option_commands.



166
167
168
# File 'lib/boson/science.rb', line 166

def all_option_commands
  @all_option_commands
end

Instance Method Details

#create(name, library) ⇒ Object



168
169
170
171
172
173
174
# File 'lib/boson/science.rb', line 168

def create(name, library)
  super.tap do |obj|
    if @all_option_commands && !%w{get method_missing}.include?(name)
      obj.make_option_command(library)
    end
  end
end