Sha256: 213248489d07df1f2dd7826173385174a7e0c2a9a07529f85227217ed1a09388

Contents?: true

Size: 202 Bytes

Versions: 10

Compression:

Stored size: 202 Bytes

Contents

# frozen_string_literal: true

class Quoted

  def identify_sentence_type(sentence)
    return 'exclamation' if (sentence[/.*!/])

    return 'question' if (sentence[/.*\?/])

    'statement'
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
rast-1.0.0 examples/quoted.rb
rast-0.19.1 examples/quoted.rb
rast-0.19.0 examples/quoted.rb
rast-0.18.0 examples/quoted.rb
rast-0.15.1 examples/quoted.rb
rast-0.14.0 examples/quoted.rb
rast-0.11.4 examples/quoted.rb
rast-0.11.3 examples/quoted.rb
rast-0.11.1 examples/quoted.rb
rast-0.11.0 examples/quoted.rb