Class: Jquard::Schemas::Layouts::Section
- Defined in:
- lib/jquard/schemas/layouts/section.rb
Instance Attribute Summary collapse
-
#heading ⇒ Object
readonly
Returns the value of attribute heading.
Class Method Summary collapse
Instance Method Summary collapse
- #description(value = nil) ⇒ Object
-
#initialize(heading = nil) ⇒ Section
constructor
A new instance of Section.
Methods inherited from Layout
Methods included from ComponentDispatch
Constructor Details
#initialize(heading = nil) ⇒ Section
Returns a new instance of Section.
11 12 13 |
# File 'lib/jquard/schemas/layouts/section.rb', line 11 def initialize(heading = nil) @heading = heading end |
Instance Attribute Details
#heading ⇒ Object (readonly)
Returns the value of attribute heading.
5 6 7 |
# File 'lib/jquard/schemas/layouts/section.rb', line 5 def heading @heading end |
Class Method Details
.make(heading = nil) ⇒ Object
7 8 9 |
# File 'lib/jquard/schemas/layouts/section.rb', line 7 def self.make(heading = nil) new(heading) end |
Instance Method Details
#description(value = nil) ⇒ Object
15 16 17 18 19 20 |
# File 'lib/jquard/schemas/layouts/section.rb', line 15 def description(value = nil) return @description if value.nil? @description = value self end |