Module: StudioGame::Formatting
- Included in:
- Printable
- Defined in:
- lib/studio_game/formatting.rb
Instance Method Summary collapse
Instance Method Details
#format_dot_spacing(name, attribute_value) ⇒ Object
3 4 5 |
# File 'lib/studio_game/formatting.rb', line 3 def format_dot_spacing(name, attribute_value) "#{name.ljust(25, ".")} #{attribute_value}" end |
#format_section_title(title) ⇒ Object
7 8 9 |
# File 'lib/studio_game/formatting.rb', line 7 def format_section_title(title) "\n" + " #{title.upcase} ".center(20, "-") end |