Class: Myco::VoidClass
- Inherits:
-
BasicObject
- Defined in:
- lib/myco/bootstrap/void.rb
Class Method Summary
collapse
Instance Method Summary
collapse
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(*args) ⇒ Object
24
25
26
|
# File 'lib/myco/bootstrap/void.rb', line 24
def method_missing *args
self
end
|
Class Method Details
.new ⇒ Object
4
5
6
|
# File 'lib/myco/bootstrap/void.rb', line 4
def self.new
@singleton ||= super
end
|
Instance Method Details
#false? ⇒ Boolean
16
17
18
|
# File 'lib/myco/bootstrap/void.rb', line 16
def false?
true
end
|
#hash ⇒ Object
28
29
30
|
# File 'lib/myco/bootstrap/void.rb', line 28
def hash
nil.hash
end
|
#inspect ⇒ Object
8
9
10
|
# File 'lib/myco/bootstrap/void.rb', line 8
def inspect
"void"
end
|
#to_s ⇒ Object
12
13
14
|
# File 'lib/myco/bootstrap/void.rb', line 12
def to_s
""
end
|
#void? ⇒ Boolean
20
21
22
|
# File 'lib/myco/bootstrap/void.rb', line 20
def void?
true
end
|