Now attempting to solve automation issues with Evolutionary programming: keep changing random shit until something works well, repeat until fixed.

Originally committed to SVN as r2002.
This commit is contained in:
Rodrigo Braz Monteiro 2008-03-09 22:07:17 +00:00
parent ed7a434a9e
commit c833156e8b
2 changed files with 13 additions and 11 deletions

View file

@ -690,6 +690,17 @@ namespace Automation4 {
return backtr;
}
RubyScriptFactory::RubyScriptFactory()
{
engine_name = _T("Ruby");
filename_pattern = _T("*.rb");
Register(this);
}
RubyScriptFactory::~RubyScriptFactory()
{
}
Script* RubyScriptFactory::Produce(const wxString &filename) const
{
// Just check if file extension is .rb

View file

@ -41,17 +41,8 @@ namespace Automation4 {
// Factory class for Ruby scripts
class RubyScriptFactory : public ScriptFactory {
public:
RubyScriptFactory()
{
engine_name = _T("Ruby");
filename_pattern = _T("*.rb");
Register(this);
}
~RubyScriptFactory()
{
}
RubyScriptFactory();
~RubyScriptFactory();
Script* Produce(const wxString &filename) const;
};
};