Module: SlackPatternInteraction
Instance Method Summary
collapse
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(method_name, *arguments, &block) ⇒ Object
5
6
7
8
9
10
11
|
# File 'lib/slack_interactive_client/concerns/slack_pattern_interaction.rb', line 5
def method_missing(method_name, *arguments, &block)
if .has_key?(method_name.to_s)
[method_name.to_s]
else
super
end
end
|
Instance Method Details
#respond_to_missing?(method_name, include_private = false) ⇒ Boolean
13
14
15
|
# File 'lib/slack_interactive_client/concerns/slack_pattern_interaction.rb', line 13
def respond_to_missing?(method_name, include_private = false)
.has_key?(method_name.to_s) || super
end
|