Sha256: 45df85527c5c28763b6bf2b13ca57588f1de2798a5153fc811303f15f4d48b25

Contents?: true

Size: 610 Bytes

Versions: 1

Compression:

Stored size: 610 Bytes

Contents

# frozen_string_literal: true

module RubyJard
  module Screens
    class ExpressionsScreen < RubyJard::Screen
      def draw
        @output.print TTY::Box.frame(
          **default_frame_styles.merge(
            top: @row, left: @col, width: @layout.width, height: @layout.height
          )
        )
        @output.print TTY::Cursor.move_to(@col + 2, @row)
        @output.print decorate_text
          .with_highlight(true)
          .text(' Expressions ', :bright_yellow)
          .content
      end
    end
  end
end

RubyJard::Screens.add_screen(:expressions, RubyJard::Screens::ExpressionsScreen)

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ruby_jard-0.1.0 lib/ruby_jard/screens/expressions_sreen.rb