Class: Sufia::HomepagePresenter
- Inherits:
-
Object
- Object
- Sufia::HomepagePresenter
- Includes:
- CurationConcerns::AbilityHelper
- Defined in:
- app/presenters/sufia/homepage_presenter.rb
Instance Attribute Summary collapse
-
#current_ability ⇒ Object
readonly
Returns the value of attribute current_ability.
Instance Method Summary collapse
- #display_share_button? ⇒ Boolean
-
#initialize(current_ability) ⇒ HomepagePresenter
constructor
A new instance of HomepagePresenter.
Constructor Details
#initialize(current_ability) ⇒ HomepagePresenter
Returns a new instance of HomepagePresenter.
6 7 8 |
# File 'app/presenters/sufia/homepage_presenter.rb', line 6 def initialize(current_ability) @current_ability = current_ability end |
Instance Attribute Details
#current_ability ⇒ Object (readonly)
Returns the value of attribute current_ability.
3 4 5 |
# File 'app/presenters/sufia/homepage_presenter.rb', line 3 def current_ability @current_ability end |
Instance Method Details
#display_share_button? ⇒ Boolean
12 13 14 |
# File 'app/presenters/sufia/homepage_presenter.rb', line 12 def Sufia.config. || can_ever_create_works? end |