You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
asciinema.org/app/presenters/bare_asciicast_page_present...

19 lines
367 B
Ruby

class BareAsciicastPagePresenter
attr_reader :asciicast, :playback_options
def self.build(asciicast, playback_options)
new(asciicast.decorate, PlaybackOptions.new(playback_options))
end
def initialize(asciicast, playback_options)
@asciicast = asciicast
@playback_options = playback_options
end
def asciicast_id
asciicast.id
end
end