module Tuxedo::InstanceMethods
InstanceMethods
that are available in every presenter
Public Class Methods
new(object, view_context)
click to toggle source
Initializes a new Tuxedo
class using the to decorate object and the view context @param [Object] object to decorate @param [ActionView::Context] view_context
Calls superclass method
# File lib/tuxedo.rb, line 38 def initialize(object, view_context) super(object) @view_context = view_context self.class.setup_alias_method end
Public Instance Methods
_h()
click to toggle source
Helper method that delegates to the view context this allows you to call the url helpers from Rails
_h.link_to ...
@return [ActionView::Context]
# File lib/tuxedo.rb, line 51 def _h @view_context end