Method: Brainstem::Presenter.possible_brainstem_keys
- Defined in:
- lib/brainstem/presenter.rb
.possible_brainstem_keys ⇒ Object
Returns the set of possible brainstem keys for the classes presented.
If the presenter specifies a key, that will be returned as the only member of the set.
36 37 38 39 40 |
# File 'lib/brainstem/presenter.rb', line 36 def self.possible_brainstem_keys @possible_brainstem_keys ||= begin Set.new(presents.map(&presenter_collection.method(:brainstem_key_for!))) end end |