Class: GPLType::Section

Inherits:
Object
  • Object
show all
Defined in:
lib/curses_color.rb

Overview

Section to type

Instance Attribute Summary collapse

Instance Method Summary collapse

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_linesObject (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_scoreObject (readonly)

Returns the value of attribute high_score.



205
206
207
# File 'lib/curses_color.rb', line 205

def high_score
  @high_score
end

#subjectObject (readonly)

Returns the value of attribute subject.



205
206
207
# File 'lib/curses_color.rb', line 205

def subject
  @subject
end