Class: RbEAI::Script
- Inherits:
-
Object
- Object
- RbEAI::Script
- Defined in:
- lib/rbeai/TransfLogic.rb
Instance Method Summary collapse
-
#initialize(node) ⇒ Script
constructor
A new instance of Script.
- #transform(file) ⇒ Object
Constructor Details
#initialize(node) ⇒ Script
Returns a new instance of Script.
66 67 68 69 |
# File 'lib/rbeai/TransfLogic.rb', line 66 def initialize(node) @script = node.attributes["script"] @pos = (pos = node.attributes["ord"])!= nil ? pos : "0" end |
Instance Method Details
#transform(file) ⇒ Object
71 72 73 74 75 76 |
# File 'lib/rbeai/TransfLogic.rb', line 71 def transform(file) newfilename = file.to_s+"."+@pos rio("#{file}") > rio("#{newfilename}") doTransform(file, newfilename) return newfilename end |