Module: Toolx::Core::Concerns::Inquirer::NilInquiry
- Defined in:
- lib/toolx/core/concerns/inquirer.rb
Instance Method Summary
collapse
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(method_name, *args) ⇒ Object
38
39
40
41
42
|
# File 'lib/toolx/core/concerns/inquirer.rb', line 38
def method_missing(method_name, *args, &)
return false if method_name.to_s.include?('?')
super
end
|
Instance Method Details
#nil? ⇒ Boolean
50
51
52
|
# File 'lib/toolx/core/concerns/inquirer.rb', line 50
def nil?
true
end
|
#respond_to_missing?(method_name, include_private = false) ⇒ Boolean
44
45
46
47
48
|
# File 'lib/toolx/core/concerns/inquirer.rb', line 44
def respond_to_missing?(method_name, include_private = false)
return true if method_name.to_s.include?('?')
super
end
|