Method: Bio.method_missing
- Defined in:
- lib/bio.rb
.method_missing(*args) ⇒ Object
Provide BioRuby shell ‘command’ also as ‘Bio.command’ (like ChemRuby)
267 268 269 270 271 272 273 274 275 276 |
# File 'lib/bio.rb', line 267 def self.method_missing(*args) require 'bio/shell' extend Bio::Shell public_class_method(*Bio::Shell.private_instance_methods) if Bio.respond_to?(args.first) Bio.send(*args) else raise NameError end end |