Method: Bio::Nexus::Util.longer_than_zero
- Defined in:
- lib/bio/db/nexus.rb
.longer_than_zero(str) ⇒ Object
Returns true if String str is not nil and longer than 0.
Arguments:
-
(required) str: String
- Returns
-
true or false
1845 1846 1847 |
# File 'lib/bio/db/nexus.rb', line 1845 def Util::longer_than_zero( str ) return ( str != nil && str.length > 0 ) end |