Sha256: f106b9ec2f42839c50fea9d8ab894ddc3a635927b7ad639d395015ed0983e649

Contents?: true

Size: 456 Bytes

Versions: 13

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

13 entries across 13 versions & 1 rubygems

Version Path
galakei-0.5.1 lib/galakei/helper_methods.rb
galakei-0.5.0 lib/galakei/helper_methods.rb
galakei-0.4.1 lib/galakei/helper_methods.rb
galakei-0.4.0 lib/galakei/helper_methods.rb
galakei-0.3.8 lib/galakei/helper_methods.rb
galakei-0.3.7 lib/galakei/helper_methods.rb
galakei-0.3.6 lib/galakei/helper_methods.rb
galakei-0.3.5 lib/galakei/helper_methods.rb
galakei-0.3.4 lib/galakei/helper_methods.rb
galakei-0.3.3 lib/galakei/helper_methods.rb
galakei-0.3.2 lib/galakei/helper_methods.rb
galakei-0.3.1 lib/galakei/helper_methods.rb
galakei-0.3.0 lib/galakei/helper_methods.rb