Method: RubbishCode::YamlStudentsListFormatStrategy#write_to
- Defined in:
- lib/source/students_list_format_strategy.rb
#write_to(filename, students) ⇒ Object
53 54 55 56 57 |
# File 'lib/source/students_list_format_strategy.rb', line 53 def write_to(filename, students) File.open(filename, 'w') do |file| file.write(students.to_yaml) end end |