Class: Funit::Compiler
- Inherits:
-
Object
- Object
- Funit::Compiler
- Defined in:
- lib/funit/functions.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name = ENV['FC']) ⇒ Compiler
constructor
A new instance of Compiler.
Constructor Details
#initialize(name = ENV['FC']) ⇒ Compiler
Returns a new instance of Compiler.
17 18 19 20 21 22 23 24 25 26 27 28 |
# File 'lib/funit/functions.rb', line 17 def initialize( name=ENV['FC'] ) errorMessage = <<-ENVIRON Fortran compiler environment variable 'FC' not set: for bourne-based shells: export FC=lf95 (in .profile) for c-based shells: setenv FC lf95 (in .login) for windows: set FC=C:\\Program Files\\lf95 (in autoexec.bat) ENVIRON raise(errorMessage) unless @name = name end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
15 16 17 |
# File 'lib/funit/functions.rb', line 15 def name @name end |