Add the following code to your project's shard.yml under:
to use in production
- OR -
development_dependencies to use in development
Provides the legacy
YAML.mapping macro method.
Add the dependency to your
dependencies: yaml_mapping: github: crystal-lang/yaml_mapping.cr
require "yaml_mapping" class Employee YAML.mapping( title: String, name: String, ) end employee = Employee.from_yaml("title: Manager\nname: John") employee.title # => "Manager" employee.name # => "John" employee.name = "Jenny" employee.name # => "Jenny"
git checkout -b my-new-feature)
git commit -am 'Add some feature')
git push origin my-new-feature)