Sha256: 74a8cfd657f3b62fa2f81ca219de0d055186b69aee34d6ee0d636b59d26b8973

Contents?: true

Size: 245 Bytes

Versions: 2

Compression:

Stored size: 245 Bytes

Contents

module UrbanDictionary
  class Entry
    attr_reader :definition, :example

    def initialize(definition, example)
      @definition = definition
      @example = example
    end

    def to_s
      "#{definition}\n#{example}"
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
urban_dictionary-0.0.2 lib/urban_dictionary/entry.rb
urban_dictionary-0.0.1 lib/urban_dictionary/entry.rb