module LineEmoji
Constants
- JSON_FILEPATH
- VERSION
Public Class Methods
encode(text)
click to toggle source
# File lib/line_emoji.rb, line 14 def encode(text) items.each { |item| text = item.encode(text) } text end
items()
click to toggle source
# File lib/line_emoji.rb, line 10 def items @items ||= JSON.parse(File.read(JSON_FILEPATH)).map { |obj| Item.new(obj) } end