Top Level Namespace
Defined Under Namespace
Modules: Mrdf_Model, Mrdf_Resource, Muml_Class, Muml_Classifier, Muml_Element, Muml_PrimitiveType, Muml_Property, Muml_UseCase, Ontomde Classes: Object, String
Instance Method Summary collapse
-
#removeVersionInARGV ⇒ Object
Rubygems allow a specific script version to be passed on command line.
- #say(x) ⇒ Object
Instance Method Details
#removeVersionInARGV ⇒ Object
Rubygems allow a specific script version to be passed on command line. Version is passed as a first parameter like : 1.0.1
For testing purposes, this script may be called directly (not through gem). We have to remove the version number which was not removed by gem.
12 13 14 15 16 17 |
# File 'lib/ontomde-uml2-kb/command.rb', line 12 def removeVersionInARGV return if ARGV.empty? return unless ARGV[0]=~/^_[.0-9]*_$/ puts "** WARNING: command line parameter #{ARGV[0]} ignored.\n" ARGV.delete_at(0) end |
#say(x) ⇒ Object
98 99 100 |
# File 'lib/ontomde-uml2-kb/command.rb', line 98 def say(x) puts("# #{File.basename(__FILE__)} #{x}") end |