Class: Modular::Components::Base
- Inherits:
-
Helpers::AbstractModel
- Object
- Helpers::AbstractModel
- Modular::Components::Base
- Includes:
- AbstractController::Helpers, AbstractController::Rendering, Rendering
- Defined in:
- lib/modular/components/base.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#title ⇒ Object
params for element itself.
Class Method Summary collapse
Instance Method Summary collapse
Methods included from Rendering
#action_name, #controller_path, #execute, #flash, #initialize, #params, #protect_against_forgery?, #render
Methods inherited from Helpers::AbstractModel
attr_accessor, attr_accessor_with_default, attr_reader, attr_reader_with_default, attr_writer, #initialize, #persisted?, #to_json
Instance Attribute Details
#title ⇒ Object
params for element itself
27 28 29 |
# File 'lib/modular/components/base.rb', line 27 def title @title end |
Class Method Details
.abstract? ⇒ Boolean
13 14 15 |
# File 'lib/modular/components/base.rb', line 13 def self.abstract? true end |
.type ⇒ Object
slug
18 19 20 |
# File 'lib/modular/components/base.rb', line 18 def self.type self.name.rpartition("::").last end |
Instance Method Details
#type ⇒ Object
22 23 24 |
# File 'lib/modular/components/base.rb', line 22 def type self.class.type end |