Module: Freenom::Expecting

Included in:
Explorer
Defined in:
lib/freenom/dns/others/expecting.rb

Defined Under Namespace

Classes: ExpectingContext

Instance Method Summary collapse

Instance Method Details

#expecting(&block) ⇒ Object



27
28
29
# File 'lib/freenom/dns/others/expecting.rb', line 27

def expecting(&block)
  ExpectingContext.new.tap { |context| context.instance_eval(&block) }.execute(self)
end