Class: Pageflow::React::PageType
- Inherits:
-
PageType
- Object
- PageType
- Pageflow::React::PageType
- Defined in:
- lib/pageflow/react/page_type.rb
Instance Attribute Summary collapse
-
#component_name ⇒ Object
readonly
Returns the value of attribute component_name.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name, component_name) ⇒ PageType
constructor
A new instance of PageType.
- #template_path ⇒ Object
Constructor Details
#initialize(name, component_name) ⇒ PageType
Returns a new instance of PageType.
6 7 8 9 |
# File 'lib/pageflow/react/page_type.rb', line 6 def initialize(name, component_name) @name = name @component_name = component_name end |
Instance Attribute Details
#component_name ⇒ Object (readonly)
Returns the value of attribute component_name.
4 5 6 |
# File 'lib/pageflow/react/page_type.rb', line 4 def component_name @component_name end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
4 5 6 |
# File 'lib/pageflow/react/page_type.rb', line 4 def name @name end |
Instance Method Details
#template_path ⇒ Object
11 12 13 |
# File 'lib/pageflow/react/page_type.rb', line 11 def template_path 'pageflow/react/page' end |