Module: Interferon::DSLMixin
Instance Method Summary
collapse
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(meth, *args, &block) ⇒ Object
8
9
10
|
# File 'lib/interferon/alert_dsl.rb', line 8
def method_missing(meth, *args, &block)
raise ArgumentError, "No such alerts field '#{meth}'"
end
|
Instance Method Details
#[](arg) ⇒ Object
12
13
14
|
# File 'lib/interferon/alert_dsl.rb', line 12
def [](arg)
self.send(arg)
end
|
#initialize(hostinfo) ⇒ Object
4
5
6
|
# File 'lib/interferon/alert_dsl.rb', line 4
def initialize(hostinfo)
@hostinfo = hostinfo
end
|