Module: Dawn::SafeExtension
- Included in:
- BaseApi::RequestExtension
- Defined in:
- lib/dawn/api/safe/safe_extension.rb
Overview
:nodoc:
Defined Under Namespace
Classes: SafeContext
Instance Method Summary collapse
Instance Method Details
#safe ⇒ SafeContext #safe(symbol, *args, &block) ⇒ Object
37 38 39 40 41 |
# File 'lib/dawn/api/safe/safe_extension.rb', line 37 def safe(*args, &block) context = SafeContext.new(self) return context.send(*args, &block) unless args.empty? context end |