Sha256: ceea22a9aa540b75fe55788c1c17d6ea29585d55593f2b33bef59df49e7fe20c

Contents?: true

Size: 208 Bytes

Versions: 7

Compression:

Stored size: 208 Bytes

Contents

module Langusta
  class Language
    attr_reader :lang, :prob

    def initialize(lang, prob)
      @lang = lang
      @prob = prob
    end

    def to_s
      lang ? "#{lang}:#{prob}" : ""
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
langusta-0.2.4 lib/langusta/language.rb
langusta-0.2.3 lib/langusta/language.rb
langusta-0.2.2 lib/langusta/language.rb
langusta-0.2.1 lib/langusta/language.rb
langusta-0.2.0 lib/langusta/language.rb
langusta-0.1.1 lib/langusta/language.rb
langusta-0.1.0 lib/langusta/language.rb