Class: PagesCore::Templates::BlockConfiguration
- Inherits:
-
Object
- Object
- PagesCore::Templates::BlockConfiguration
- Defined in:
- lib/pages_core/templates/block_configuration.rb
Overview
Configuration for the blocks on an individual template
Instance Attribute Summary collapse
-
#description ⇒ Object
readonly
Returns the value of attribute description.
-
#enforced ⇒ Object
readonly
Returns the value of attribute enforced.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#optional ⇒ Object
readonly
Returns the value of attribute optional.
-
#title ⇒ Object
readonly
Returns the value of attribute title.
Instance Method Summary collapse
Instance Attribute Details
#description ⇒ Object (readonly)
Returns the value of attribute description.
7 8 9 |
# File 'lib/pages_core/templates/block_configuration.rb', line 7 def description @description end |
#enforced ⇒ Object (readonly)
Returns the value of attribute enforced.
7 8 9 |
# File 'lib/pages_core/templates/block_configuration.rb', line 7 def enforced @enforced end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
7 8 9 |
# File 'lib/pages_core/templates/block_configuration.rb', line 7 def name @name end |
#optional ⇒ Object (readonly)
Returns the value of attribute optional.
7 8 9 |
# File 'lib/pages_core/templates/block_configuration.rb', line 7 def optional @optional end |
#title ⇒ Object (readonly)
Returns the value of attribute title.
7 8 9 |
# File 'lib/pages_core/templates/block_configuration.rb', line 7 def title @title end |
Instance Method Details
#large? ⇒ Boolean
13 14 15 |
# File 'lib/pages_core/templates/block_configuration.rb', line 13 def large? !small? end |
#small? ⇒ Boolean
9 10 11 |
# File 'lib/pages_core/templates/block_configuration.rb', line 9 def small? @size == :small end |