Skip to content

Instantly share code, notes, and snippets.

@domgetter
Last active August 29, 2015 14:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save domgetter/1fbcb607fa32d4e1dcfc to your computer and use it in GitHub Desktop.
Save domgetter/1fbcb607fa32d4e1dcfc to your computer and use it in GitHub Desktop.
require_relative 'syntax'
Sentence = Struct.new(:syntax)
def initialize
self.syntax = Syntax.new
end
def to_s
output = self.syntax.words.join(" ") + "."
output[0] = output[0].upcase
output
end
end
sentence = Sentence.new
puts sentence
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment