Class: Object

Inherits:
BasicObject
Defined in:
lib/bones/tasks/setup.rb

Overview

We need a “valid” method thtat determines if a string is suitable for use in the gem specification.

Instance Method Summary collapse

Instance Method Details

#valid?Boolean

Returns:

  • (Boolean)


286
287
288
289
# File 'lib/bones/tasks/setup.rb', line 286

def valid?
  return !(self.empty? or self == "\000") if self.respond_to?(:to_str)
  return false
end