Class: PlatteModule
- Inherits:
-
Object
- Object
- PlatteModule
- Defined in:
- lib/platte_module.rb
Overview
A single module
Instance Attribute Summary collapse
-
#description ⇒ Object
readonly
Returns the value of attribute description.
-
#javascripts ⇒ Object
readonly
Returns the value of attribute javascripts.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#stylesheets ⇒ Object
readonly
Returns the value of attribute stylesheets.
-
#template ⇒ Object
readonly
Returns the value of attribute template.
Instance Method Summary collapse
-
#directory ⇒ Object
rubocop:enable Metrics/ParameterLists.
-
#initialize(folder, name, description, template, stylesheets = [], javascripts = []) ⇒ PlatteModule
constructor
rubocop:disable Metrics/ParameterLists.
Constructor Details
#initialize(folder, name, description, template, stylesheets = [], javascripts = []) ⇒ PlatteModule
rubocop:disable Metrics/ParameterLists
9 10 11 12 13 14 15 16 |
# File 'lib/platte_module.rb', line 9 def initialize folder, name, description, template, stylesheets = [], javascripts = [] @folder = folder @name = name @template = template @description = description @stylesheets = stylesheets if stylesheets @javascripts = javascripts if javascripts end |
Instance Attribute Details
#description ⇒ Object (readonly)
Returns the value of attribute description.
24 25 26 |
# File 'lib/platte_module.rb', line 24 def description @description end |
#javascripts ⇒ Object (readonly)
Returns the value of attribute javascripts.
26 27 28 |
# File 'lib/platte_module.rb', line 26 def javascripts @javascripts end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
23 24 25 |
# File 'lib/platte_module.rb', line 23 def name @name end |
#stylesheets ⇒ Object (readonly)
Returns the value of attribute stylesheets.
25 26 27 |
# File 'lib/platte_module.rb', line 25 def stylesheets @stylesheets end |
#template ⇒ Object (readonly)
Returns the value of attribute template.
27 28 29 |
# File 'lib/platte_module.rb', line 27 def template @template end |
Instance Method Details
#directory ⇒ Object
rubocop:enable Metrics/ParameterLists
19 20 21 |
# File 'lib/platte_module.rb', line 19 def directory File. "./#{@folder}" end |