Class: PagesCore::Templates::BlockConfiguration

Inherits:
Object
  • Object
show all
Defined in:
lib/pages_core/templates/block_configuration.rb

Overview

Configuration for the blocks on an individual template

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#descriptionObject (readonly)

Returns the value of attribute description.



7
8
9
# File 'lib/pages_core/templates/block_configuration.rb', line 7

def description
  @description
end

#enforcedObject (readonly)

Returns the value of attribute enforced.



7
8
9
# File 'lib/pages_core/templates/block_configuration.rb', line 7

def enforced
  @enforced
end

#nameObject (readonly)

Returns the value of attribute name.



7
8
9
# File 'lib/pages_core/templates/block_configuration.rb', line 7

def name
  @name
end

#optionalObject (readonly)

Returns the value of attribute optional.



7
8
9
# File 'lib/pages_core/templates/block_configuration.rb', line 7

def optional
  @optional
end

#titleObject (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

Returns:

  • (Boolean)


13
14
15
# File 'lib/pages_core/templates/block_configuration.rb', line 13

def large?
  !small?
end

#small?Boolean

Returns:

  • (Boolean)


9
10
11
# File 'lib/pages_core/templates/block_configuration.rb', line 9

def small?
  @size == :small
end