Last active
August 21, 2020 19:52
-
-
Save alxlion/9a1fee5d3bce15d7860dd0e7b11dfcb1 to your computer and use it in GitHub Desktop.
Respond_to Metaprogramming example
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
class Shipment | |
def prepare_for_delivery | |
@message = 'Shipment is prepared for delivery' | |
end | |
def tracking_code(code) | |
@tracking_code = code | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment