Module: Blabbermouth::Bystanders::DynamicEvents
- Included in:
- Stdout
- Defined in:
- lib/blabbermouth/bystanders/dynamic_events.rb
Constant Summary
collapse
- EXCLUDES =
[:flush]
Instance Method Summary
collapse
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(meth, *args) ⇒ Object
10
11
12
|
# File 'lib/blabbermouth/bystanders/dynamic_events.rb', line 10
def method_missing(meth, *args)
relay meth, *args
end
|
Instance Method Details
#relay(meth, key, *args) ⇒ Object
6
7
8
|
# File 'lib/blabbermouth/bystanders/dynamic_events.rb', line 6
def relay(meth, key, *args)
raise NotImplementedError, "#{self.class.name}##{__method__} has not been implemented"
end
|
#respond_to_missing?(meth, include_private = false) ⇒ Boolean
14
15
16
|
# File 'lib/blabbermouth/bystanders/dynamic_events.rb', line 14
def respond_to_missing?(meth, include_private=false)
EXCLUDES.include?(meth) ? false : true
end
|