Sha256: 8e7442d40c3edbfafb035888423f0a0285b0b39569fcc9b2df5824e0df964a9a

Contents?: true

Size: 230 Bytes

Versions: 2

Compression:

Stored size: 230 Bytes

Contents

module HelloCrush
  class Say
    def initialize(name)
      @name = name
    end

    def greet
      "#{@name}, #{random_message}"
    end

    private

    def random_message
      HelloCrush::MESSAGES.sample
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
hello_crush-0.1.1 lib/hello_crush/say.rb
hello_crush-0.1.0 lib/hello_crush/say.rb