Class: Fino::Settings::Section
- Inherits:
-
Object
- Object
- Fino::Settings::Section
- Defined in:
- lib/fino/settings/section.rb
Instance Attribute Summary collapse
-
#label ⇒ Object
readonly
Returns the value of attribute label.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#settings ⇒ Object
readonly
Returns the value of attribute settings.
Instance Method Summary collapse
-
#initialize(name = nil, label: nil) ⇒ Section
constructor
A new instance of Section.
Constructor Details
#initialize(name = nil, label: nil) ⇒ Section
Returns a new instance of Section.
6 7 8 9 10 11 |
# File 'lib/fino/settings/section.rb', line 6 def initialize(name = nil, label: nil) @name = name @label = label @settings = {} end |
Instance Attribute Details
#label ⇒ Object (readonly)
Returns the value of attribute label.
4 5 6 |
# File 'lib/fino/settings/section.rb', line 4 def label @label end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
4 5 6 |
# File 'lib/fino/settings/section.rb', line 4 def name @name end |
#settings ⇒ Object (readonly)
Returns the value of attribute settings.
4 5 6 |
# File 'lib/fino/settings/section.rb', line 4 def settings @settings end |