Class: HashPresenter

Inherits:
Mystique::Presenter show all
Defined in:
lib/mystique/presenters/hash_presenter.rb

Constant Summary

Constants inherited from Mystique::Presenter

Mystique::Presenter::FORMATS

Instance Method Summary collapse

Methods inherited from Mystique::Presenter

#context, #ctx, for, #h, #initialize, #inspect, #o

Constructor Details

This class inherits a constructor from Mystique::Presenter

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Mystique::Presenter

Instance Method Details

#eachObject



2
3
4
5
6
# File 'lib/mystique/presenters/hash_presenter.rb', line 2

def each
  super do |key, value|
    yield(Mystique.present(key), Mystique.present(value))
  end
end