Class: Pageflow::ViewComponent

Inherits:
Arbre::Component
  • Object
show all
Defined in:
lib/pageflow/view_component.rb

Overview

Base class for Arbre components defined by Pageflow. Store the builder method name to facilitate calling it in specs.

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.builder_method_nameObject (readonly)

Returns the value of attribute builder_method_name.



6
7
8
# File 'lib/pageflow/view_component.rb', line 6

def builder_method_name
  @builder_method_name
end

Class Method Details

.builder_method(name) ⇒ Object



9
10
11
12
# File 'lib/pageflow/view_component.rb', line 9

def self.builder_method(name)
  @builder_method_name = name
  super
end