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


5
6
7
# File 'lib/pages_core/templates/block_configuration.rb', line 5

def description
  @description
end

#enforcedObject (readonly)

Returns the value of attribute enforced


5
6
7
# File 'lib/pages_core/templates/block_configuration.rb', line 5

def enforced
  @enforced
end

#nameObject (readonly)

Returns the value of attribute name


5
6
7
# File 'lib/pages_core/templates/block_configuration.rb', line 5

def name
  @name
end

#optionalObject (readonly)

Returns the value of attribute optional


5
6
7
# File 'lib/pages_core/templates/block_configuration.rb', line 5

def optional
  @optional
end

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

Returns:

  • (Boolean)

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

def large?
  small? ? false : true
end

#small?Boolean

Returns:

  • (Boolean)

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

def small?
  @size == :small
end