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.
5 6 7 |
# File 'lib/pages_core/templates/block_configuration.rb', line 5 def description @description end |
#enforced ⇒ Object (readonly)
Returns the value of attribute enforced.
5 6 7 |
# File 'lib/pages_core/templates/block_configuration.rb', line 5 def enforced @enforced end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
5 6 7 |
# File 'lib/pages_core/templates/block_configuration.rb', line 5 def name @name end |
#optional ⇒ Object (readonly)
Returns the value of attribute optional.
5 6 7 |
# File 'lib/pages_core/templates/block_configuration.rb', line 5 def optional @optional end |
#title ⇒ Object (readonly)
Returns the value of attribute title.
5 6 7 |
# File 'lib/pages_core/templates/block_configuration.rb', line 5 def title @title end |
Instance Method Details
#large? ⇒ Boolean
10 11 12 |
# File 'lib/pages_core/templates/block_configuration.rb', line 10 def large? small? ? false : true end |
#small? ⇒ Boolean
6 7 8 |
# File 'lib/pages_core/templates/block_configuration.rb', line 6 def small? @size == :small end |