What is RemoveNamespaceDeclaration(String) in Ruby?
What is Ruby?
Ruby# is a pure object-oriented language. One of its key features is its simplicity as compared to other languages. It is easy to read and write.
Features of Ruby
-
It can be linked with HTML.
-
Its simplicity makes it easier for a new developer to learn the language.
-
It is used for developing internet and intranet applications.
-
It has a significant number of built-in functions, which increases the functionality of the language.
-
It has a syntax similar to C++ and many other programming languages.
-
It is connectable to MySQL, Oracle, DB2.
-
It is a server-side language identical to Perl and Python.
RemoveNamespaceDeclaration(String) in Ruby removes the namespace declaration for the specified prefix.
Syntax
public void RemoveNamespaceDeclaration (string prefix);
Parameters
string prefix
The function removes nothing if no prefix is passed.