class Person
def name # <1> Get name
@name
end
def name=(new_name) # <2> Set name
@name=new_name
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import json | |
import sys | |
import os | |
def read_search(in_file_name): | |
with open(in_file_name, 'r') as json_file: | |
docs = json.load(json_file) | |
return docs |