Skip to content

NickUkraine24/search_data

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Search Data

Search data from data.json file.

How to test?

  1. Clone repository:
    $ git clone https://github.com/NickUkraine24/search_data.git
  2. Go to project directory:
    $ cd search_data
  3. Run command:
     $ ruby search.rb search_values

Examples

  1. Input:
    $ ruby search.rb Interpreted "Thomas Eugene"
    Ouput:
    BASIC
  2. Input:
    $ ruby search.rb Lisp Common
    Ouput:
    Common Lisp
  3. Input:
    $ ruby search.rb Scripting Microsoft
    Ouput:
    JScript
    VBScript
    Windows PowerShell
  4. Input:
    $ ruby search.rb
    Ouput:
    Searching values are empty.