Class: Luna::Formatters::Emoji
- Inherits:
-
RSpec::Core::Formatters::BaseTextFormatter
- Object
- RSpec::Core::Formatters::BaseTextFormatter
- Luna::Formatters::Emoji
- Includes:
- Profiling
- Defined in:
- lib/luna/rspec/formatters/emoji.rb
Constant Summary
Constants included from Profiling
Profiling::EXP, Profiling::EXP_HEADER, Profiling::GROUPS, Profiling::GROUPS_HEADER
Instance Method Summary collapse
-
#allowed_cols ⇒ Object
– Note: If the terminal is too small we just let it go.
-
#start(_) ⇒ Object
– Start.
-
#start_dump(_) ⇒ Object
– End.
Methods included from Profiling
Instance Method Details
#allowed_cols ⇒ Object
– Note: If the terminal is too small we just let it go. The total columns we allow. –
28 29 30 |
# File 'lib/luna/rspec/formatters/emoji.rb', line 28 def allowed_cols @cols ||= (IO.console.winsize.last / 6) end |
#start(_) ⇒ Object
– Start. –
35 36 37 38 |
# File 'lib/luna/rspec/formatters/emoji.rb', line 35 def start(_) @lines = 0 output.puts end |
#start_dump(_) ⇒ Object
– End. –
43 44 45 |
# File 'lib/luna/rspec/formatters/emoji.rb', line 43 def start_dump(_) output.puts end |