Sha256: ead0dfbbfe899a4a10df4817838e081430db8b5e3aa36943fd71fa5d1e289d56

Contents?: true

Size: 456 Bytes

Versions: 3

Compression:

Stored size: 456 Bytes

Contents

module Galakei
  module HelperMethods
    def self.included(klass)
      klass.helper_method :galakei?
      klass.helper_method :emoji_table
    end 
    protected

    def galakei?
      request.galakei?
    end

    def emoji_table
      if request.docomo?
        EmojiTable.docomo
      elsif request.softbank?
        EmojiTable.softbank
      elsif request.au?
        EmojiTable.au
      else
        EmojiTable.unicode
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
galakei-0.13.0 lib/galakei/helper_methods.rb
galakei-0.12.1 lib/galakei/helper_methods.rb
galakei-0.12.0 lib/galakei/helper_methods.rb