Sha256: f16965d5a8df4754572a82423900cea7d00c1e1a61c77698a0c39dd5f97e5c67

Contents?: true

Size: 475 Bytes

Versions: 1

Compression:

Stored size: 475 Bytes

Contents

module App
  module Screen
    module_function

    def clear
      print "\e[H\e[2J"
    end
  end

  module InsertApp
    module_function

    def run
      Screen.clear

      while gets
        if $_.start_with? ':'
          command = $_.strip
        else
        end
      end
    end
  end

  module CLI
    module_function
    def run
      case ARGV[0]
      when 'insert'
        InsertApp.run
      when 'search'
        SearchApp.run
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
la-0.0.0 app.rb