class Nicovideo::ThumbInfo
Attributes
Public Class Methods
new()
click to toggle source
# File lib/nicovideo/thumbnail.rb, line 55 def initialize @tags = {} end
Public Instance Methods
has_tag?(tag)
click to toggle source
# File lib/nicovideo/thumbnail.rb, line 59 def has_tag?(tag) @tag_hash ||= tag_flatten.inject({}) {|tag_hash, temp_tag| tag_hash[temp_tag] = temp_tag} @tag_hash.has_key? tag end
tag_flatten()
click to toggle source
# File lib/nicovideo/thumbnail.rb, line 64 def tag_flatten @tag_flatten ||= @tags.values.flatten end