Class: Twemoji::Configuration
- Inherits:
-
Object
- Object
- Twemoji::Configuration
- Defined in:
- lib/twemoji/configuration.rb
Constant Summary collapse
- DATA_DIR =
File.join(File.dirname(__FILE__), "data")
- CODE_MAP_FILE =
File.join(DATA_DIR, "emoji-unicode.yml")
- PNG_MAP_FILE =
File.join(DATA_DIR, "emoji-unicode-png.yml")
- SVG_MAP_FILE =
File.join(DATA_DIR, "emoji-unicode-svg.yml")
Instance Attribute Summary collapse
-
#asset_root ⇒ Object
Returns the value of attribute asset_root.
-
#class_name ⇒ Object
Returns the value of attribute class_name.
-
#file_ext ⇒ Object
Returns the value of attribute file_ext.
-
#img_attrs ⇒ Object
Returns the value of attribute img_attrs.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
30 31 32 33 34 35 |
# File 'lib/twemoji/configuration.rb', line 30 def initialize @asset_root = "https://twemoji.maxcdn.com/2" @file_ext = "svg" @class_name = "emoji" @img_attrs = {} end |
Instance Attribute Details
#asset_root ⇒ Object
Returns the value of attribute asset_root.
28 29 30 |
# File 'lib/twemoji/configuration.rb', line 28 def asset_root @asset_root end |
#class_name ⇒ Object
Returns the value of attribute class_name.
28 29 30 |
# File 'lib/twemoji/configuration.rb', line 28 def class_name @class_name end |
#file_ext ⇒ Object
Returns the value of attribute file_ext.
28 29 30 |
# File 'lib/twemoji/configuration.rb', line 28 def file_ext @file_ext end |
#img_attrs ⇒ Object
Returns the value of attribute img_attrs.
28 29 30 |
# File 'lib/twemoji/configuration.rb', line 28 def img_attrs @img_attrs end |