example/yaml_students/students.rb in lorj-1.0.9 vs example/yaml_students/students.rb in lorj-1.0.10

- old
+ new

@@ -29,36 +29,36 @@ if school.query_student(:name => 'Robert Redford').length == 0 school.create_student('Robert Redford', :first_name => 'Robert', :last_name => 'Redford', :training => 'Art Comedy' - ) + ) end puts ANSI.bold('Create 2nd student:') if school.query_student(:name => 'Anthony Hopkins').length == 0 school.create_student('Anthony Hopkins', :first_name => 'Anthony', :last_name => 'Hopkins', :training => 'Art Drama' - ) + ) end puts ANSI.bold('Create 3rd student:') if school.query_student(:name => 'Marilyn Monroe').length == 0 school.create_student('Marilyn Monroe', :first_name => 'Marilyn', :last_name => 'Mistake', :training => 'Art Drama' - ) + ) end puts ANSI.bold('Create mistake') student = school.create_student('Anthony Mistake', :first_name => 'Anthony', :last_name => 'Mistake', :training => 'what ever you want!!!' -) + ) puts format("Student created: '%s'", student) puts ANSI.bold('Remove mistake') result = school.query_student(:name => 'Anthony Mistake')