Class: Arrolio::LayoutSpec::Flow

Inherits:
Struct
  • Object
show all
Defined in:
lib/arrolio/layout_spec/flow.rb

Overview

Declares a named content flow into a region. Declarative only — Engine::Paged takes a flat Flowable list and a body template today.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeFlow

Returns a new instance of Flow.



10
11
12
13
14
# File 'lib/arrolio/layout_spec/flow.rb', line 10

def initialize(*)
  super
  self.name = self.name.to_sym if self.name
  freeze
end

Instance Attribute Details

#default_style_idObject

Returns the value of attribute default_style_id

Returns:

  • (Object)

    the current value of default_style_id



8
9
10
# File 'lib/arrolio/layout_spec/flow.rb', line 8

def default_style_id
  @default_style_id
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



8
9
10
# File 'lib/arrolio/layout_spec/flow.rb', line 8

def name
  @name
end

#regionObject

Returns the value of attribute region

Returns:

  • (Object)

    the current value of region



8
9
10
# File 'lib/arrolio/layout_spec/flow.rb', line 8

def region
  @region
end

#sourceObject

Returns the value of attribute source

Returns:

  • (Object)

    the current value of source



8
9
10
# File 'lib/arrolio/layout_spec/flow.rb', line 8

def source
  @source
end