class RadioVISGenerator::BrandingSlide
Public Instance Methods
background_image()
click to toggle source
I’m just an example slide so I don’t actually have a background image bundled. But here I’d return a full path to whatever I wanted behind my SVG with all the SVG’s shiny opacity.
# File lib/radiovis-generator/slides/branding_slide.rb, line 11 def background_image return nil end
generate()
click to toggle source
Man, NowPlayingSlide thinks he’s got problems. I’m a complete idiot compared to that guy. Hey, want to help me out? Maybe add some functionality to me?
# File lib/radiovis-generator/slides/branding_slide.rb, line 4 def generate return { '$$STATIONNAME$$' => 'Your Radio Station' } end
priority()
click to toggle source
And it’s lower priority.
# File lib/radiovis-generator/slides/branding_slide.rb, line 19 def priority 25 end
redisplay_delay()
click to toggle source
We don’t want this one displayed so often.
# File lib/radiovis-generator/slides/branding_slide.rb, line 15 def redisplay_delay 20 end
svg_filename()
click to toggle source
Specify our filename - this is messy because it’s relative to the gem.
# File lib/radiovis-generator/slides/branding_slide.rb, line 23 def svg_filename return "#{File.expand_path(File.dirname(File.dirname(File.dirname(File.dirname(__FILE__)))))}/templates/branding-slide.svg" end