Poem.rb
# this class needs to have the following items overwritten:
# method: get_poetry_type
# method: get_line_definitions
this class needs to have the following items overwritten:
method: get_poetry_type
method: get_line_definitions
this class needs to have the following items overwritten : method : get_poetry_type method : get_line_definitions
def build_poem()
      @line_definitions.each do |line_definition|
        begin
          @my_incredible_poem.add( get_poem_line_data( instance_variable_get( "@#{PoemQueue::LINE_WORDS[line_definition.get_number_of_syllables()]}_syllable_lines" ) ) )
        rescue => uh_oh
          puts "There was an issue: #{uh_oh}"
        end
      end
    end
def build_poem ( ) @line_definitions . each do | line_definition | begin @my_incredible_poem . add ( get_poem_line_data ( instance_variable_get ( "@#{PoemQueue::LINE_WORDS[line_definition.get_number_of_syllables()]}_syllable_lines" ) ) ) rescue => uh_oh puts "There was an issue: #{uh_oh}" end end end
this class needs to have the following items overwritten:
method: get_poetry_type
method: get_line_definitions
this class needs to have the following items overwritten : method : get_poetry_type method : get_line_definitions
# a haiku's line_definitions = [5, 7, 5][nil, nil, nil] - the set of nils is because no line needs to rhyme with another line