Sha256: cd4455e1fd9507e01904f68ae8dae6b4565f196e52c6da2b7ad36491dd2e8689

Contents?: true

Size: 257 Bytes

Versions: 1

Compression:

Stored size: 257 Bytes

Contents

class CharcoalCms::Translator
  def initialize(language = "english")
    @language = language
  end

  def hi
    case @language
    when "spanish"
      "hola mundo"
    when "korean"
      "anyoung ha se yo"
    else
      "hello world"
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
charcoalcms-0.0.1 lib/charcoalcms/translator.rb