Class: UDRS::Components::Header
- Inherits:
-
Object
- Object
- UDRS::Components::Header
- Defined in:
- lib/udrs/components/header.rb
Constant Summary collapse
- LEVELS =
1..3
Instance Attribute Summary collapse
-
#level ⇒ Object
readonly
Returns the value of attribute level.
-
#text ⇒ Object
readonly
Returns the value of attribute text.
Instance Method Summary collapse
-
#initialize(text, level = 1) ⇒ Header
constructor
A new instance of Header.
Constructor Details
Instance Attribute Details
#level ⇒ Object (readonly)
Returns the value of attribute level.
4 5 6 |
# File 'lib/udrs/components/header.rb', line 4 def level @level end |
#text ⇒ Object (readonly)
Returns the value of attribute text.
4 5 6 |
# File 'lib/udrs/components/header.rb', line 4 def text @text end |