Class: BenString
Defined Under Namespace
Modules: Version
Constant Summary
Constants included
from Version
Version::BUGFX, Version::MAJOR, Version::MINOR, Version::VERSION
Class Method Summary
collapse
Instance Method Summary
collapse
Methods included from Version
version
Class Method Details
.in_use? ⇒ Boolean
23
24
25
26
27
|
# File 'lib/ben_string.rb', line 23
def in_use?
counts = Hash.new(0)
ObjectSpace.each_object { |o| counts[o.class] += 1 }
counts[self] > 0
end
|
Instance Method Details
#to_ben_s ⇒ Object
35
36
37
|
# File 'lib/ben_string.rb', line 35
def to_ben_s()
return self
end
|
#to_bool ⇒ Object
32
33
34
|
# File 'lib/ben_string.rb', line 32
def to_bool( )
return !!self
end
|