Class: Bridgetown::Hooks::HookRegistration

Inherits:
Struct
  • Object
show all
Defined in:
bridgetown-core/lib/bridgetown-core/hooks.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#blockObject

Returns the value of attribute block

Returns:

  • (Object)

    the current value of block



5
6
7
# File 'bridgetown-core/lib/bridgetown-core/hooks.rb', line 5

def block
  @block
end

#eventObject

Returns the value of attribute event

Returns:

  • (Object)

    the current value of event



5
6
7
# File 'bridgetown-core/lib/bridgetown-core/hooks.rb', line 5

def event
  @event
end

#ownerObject

Returns the value of attribute owner

Returns:

  • (Object)

    the current value of owner



5
6
7
# File 'bridgetown-core/lib/bridgetown-core/hooks.rb', line 5

def owner
  @owner
end

#priorityObject

Returns the value of attribute priority

Returns:

  • (Object)

    the current value of priority



5
6
7
# File 'bridgetown-core/lib/bridgetown-core/hooks.rb', line 5

def priority
  @priority
end

#reloadableObject

Returns the value of attribute reloadable

Returns:

  • (Object)

    the current value of reloadable



5
6
7
# File 'bridgetown-core/lib/bridgetown-core/hooks.rb', line 5

def reloadable
  @reloadable
end

Instance Method Details

#to_sObject



13
14
15
# File 'bridgetown-core/lib/bridgetown-core/hooks.rb', line 13

def to_s
  "#{owner}:#{event} for #{block}"
end