Class: Mentor::Header
- Inherits:
-
Object
- Object
- Mentor::Header
- Defined in:
- lib/sections/header.rb
Instance Attribute Summary collapse
-
#lines ⇒ Object
readonly
Returns the value of attribute lines.
Instance Method Summary collapse
-
#initialize ⇒ Header
constructor
A new instance of Header.
Methods included from Outputs
#absolute_base_dir, #app_dir, #backtrace_lines, #calling_method, #did_you_mean_text, #did_you_mean_word, #error_lineno, #error_lineno_padded, #file_name, #horizontal_line, #instance_methods, #lineno_subtle_padded, #message, #method_class, #method_class_plural, #method_class_superclass, #method_class_superclasses, #method_name, #relative_base_dir, #ruby_error_class, #ruby_error_text, #var_for_method
Methods included from OutputHelper
#home_to_tilde, #indent_lines, #lines_from_file, #terminal_width, #valid_var_name
Methods included from Colorize
Constructor Details
#initialize ⇒ Header
Returns a new instance of Header.
9 10 11 12 13 14 15 16 17 |
# File 'lib/sections/header.rb', line 9 def initialize @lines = [ horizontal_line, title_indented, horizontal_line, ] colorize_section end |
Instance Attribute Details
#lines ⇒ Object (readonly)
Returns the value of attribute lines.
7 8 9 |
# File 'lib/sections/header.rb', line 7 def lines @lines end |