Class: RbEAI::Script

Inherits:
Object
  • Object
show all
Defined in:
lib/rbeai/TransfLogic.rb

Direct Known Subclasses

AwkScript, XslScript

Instance Method Summary collapse

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