Module: Easy::Api::BlockWrapper::InstanceMethods
- Defined in:
- lib/easy/api/block_wrapper.rb
Instance Method Summary collapse
-
#easy_api {|wrapper| ... } ⇒ Object
Initialises a new Easy::Api::Wrapper object takes a block of code to be rendered using the formatter.
Instance Method Details
#easy_api {|wrapper| ... } ⇒ Object
Initialises a new Easy::Api::Wrapper object takes a block of code to be rendered using the formatter
6 7 8 9 |
# File 'lib/easy/api/block_wrapper.rb', line 6 def easy_api &block wrapper ||= Wrapper.new(self) yield(wrapper) end |