Module: GrADS
- Defined in:
- lib/grads.rb,
lib/grads/gridded.rb
Defined Under Namespace
Classes: Command, Gridded
Class Method Summary
collapse
Class Method Details
.script(name, definition) ⇒ Object
739
740
741
742
743
744
745
746
747
748
|
# File 'lib/grads/command.rb', line 739
def GrADS.script (name, definition)
io = Tempfile.new("CA_GrADS_", ".")
io.write(definition)
io.flush
GrADS::Command.class_eval %{
def #{name} (*args)
run "#{io.path}", *args
end
}
end
|
.start(*argv, &block) ⇒ Object
735
736
737
|
# File 'lib/grads/command.rb', line 735
def GrADS.start (*argv, &block)
return GrADS::Command.new(*argv, &block)
end
|