Class: GPLType::Section
- Inherits:
-
Object
- Object
- GPLType::Section
- Defined in:
- lib/curses_color.rb
Overview
Section to type
Instance Attribute Summary collapse
-
#body_lines ⇒ Object
readonly
Returns the value of attribute body_lines.
-
#high_score ⇒ Object
readonly
Returns the value of attribute high_score.
-
#subject ⇒ Object
readonly
Returns the value of attribute subject.
Instance Method Summary collapse
-
#initialize(subject, body_lines, high_sec, high_chars) ⇒ Section
constructor
A new instance of Section.
Constructor Details
#initialize(subject, body_lines, high_sec, high_chars) ⇒ Section
Returns a new instance of Section.
196 197 198 199 200 201 202 203 |
# File 'lib/curses_color.rb', line 196 def initialize(subject, body_lines, high_sec, high_chars) @subject = subject @body_lines = body_lines @high_score = { :sec => high_sec <= 9999 ? high_sec : 9999, :chars => high_chars <= 9999 ? high_chars : 9999, } end |
Instance Attribute Details
#body_lines ⇒ Object (readonly)
Returns the value of attribute body_lines.
205 206 207 |
# File 'lib/curses_color.rb', line 205 def body_lines @body_lines end |
#high_score ⇒ Object (readonly)
Returns the value of attribute high_score.
205 206 207 |
# File 'lib/curses_color.rb', line 205 def high_score @high_score end |
#subject ⇒ Object (readonly)
Returns the value of attribute subject.
205 206 207 |
# File 'lib/curses_color.rb', line 205 def subject @subject end |