Module: Emojidex::EmojiAssetInformation
- Included in:
- Emoji
- Defined in:
- lib/emojidex/emoji/asset_information.rb
Overview
Asset information for emoji
Instance Attribute Summary collapse
-
#checksums ⇒ Object
Returns the value of attribute checksums.
-
#paths ⇒ Object
Returns the value of attribute paths.
Instance Method Summary collapse
-
#checksum?(format, variant = nil) ⇒ Boolean
returns asset checksum.
-
#path?(format, variant = nil) ⇒ Boolean
returns asset path.
Instance Attribute Details
#checksums ⇒ Object
Returns the value of attribute checksums.
5 6 7 |
# File 'lib/emojidex/emoji/asset_information.rb', line 5 def checksums @checksums end |
#paths ⇒ Object
Returns the value of attribute paths.
5 6 7 |
# File 'lib/emojidex/emoji/asset_information.rb', line 5 def paths @paths end |
Instance Method Details
#checksum?(format, variant = nil) ⇒ Boolean
returns asset checksum
8 9 10 11 12 |
# File 'lib/emojidex/emoji/asset_information.rb', line 8 def checksum?(format, variant = nil) puts @checksums return @checksums[format][variant] unless variant.nil? @checksums[format] end |
#path?(format, variant = nil) ⇒ Boolean
returns asset path
15 16 17 18 |
# File 'lib/emojidex/emoji/asset_information.rb', line 15 def path?(format, variant = nil) return @paths[format][variant] unless variant.nil? @paths[format] end |