class Moonrope::Helper
Attributes
block[R]
@return [Proc] the proc to execute
controller[R]
@return [Moonrope::Controller] the controller this helper belongs to
name[R]
@return [Symbol] the name of the helper
options[R]
@return [Hash] options for this helper
Public Class Methods
new(name, controller, options = {}, &block)
click to toggle source
Initialize a new helper
@param name [Symbol] the name of the helper @param controller [Moonrope::Controller] the controller the helper belongs to @yield stores the block for use later
# File lib/moonrope/helper.rb, line 23 def initialize(name, controller, options = {}, &block) @name = name @controller = controller @options = options @block = block end