Files
2026-11-14 22:34:06 -07:00

30 lines
1.3 KiB
Ruby

# frozen_string_literal: true
# sffrozen_string_literal: true
# This file is where you (the student) will solve the homework. This file will
# have many comments and will note where you need to make changes.
# This is a class, it allows us to use it as an object and will allow our
# testing/grading process to work. This generally will never be changed.
class Assignment
# This is a class function. The `initialize` function is a special one that
# is run whenever an object of the class is created. In this case, we will
# leave this empty as there are no default actions that need to be performed.
def initialize; end
# This is our main task in this file. For this assignment we need to make the
# text `Hello World` appear on the screen.
def say_text
# Here is where you will change. In Ruby there are several ways to print
# text. In this case, we can use either the `puts` or the `print`
# function. There are slight differences which can be found at
# `https://docs.ruby-lang.org/en/3.3/`. I encourage you to look for these
# two functions and find the documentation. Becoming familar with this site
# will be a great benifit later as you will easily be able to find
# information about Ruby.
puts 'Hello World'
end
end