class Revealize::DeckList
Attributes
deck_names[R]
Public Class Methods
new(*deck_names)
click to toggle source
# File lib/revealize/deck_list.rb, line 4 def initialize(*deck_names) @deck_names = deck_names end
Public Instance Methods
==(other)
click to toggle source
# File lib/revealize/deck_list.rb, line 11 def ==(other) return false unless other.is_a?(DeckList) return other.deck_names == deck_names end
render()
click to toggle source
# File lib/revealize/deck_list.rb, line 8 def render deck_names.map {|deck_name| "<a href=\"/#{deck_name}\">#{deck_name}</a>" }.join($/) end
to_s()
click to toggle source
# File lib/revealize/deck_list.rb, line 15 def to_s "DeckList(#{deck_names.join(', ')})" end