module Photish::Plugin::YellLoud

Public Class Methods

is_for?(type) click to toggle source
# File lib/photish/assets/example/site/_plugins/yell_loud.rb, line 2
def self.is_for?(type)
  [
    Photish::Plugin::Type::Collection,
    Photish::Plugin::Type::Album,
    Photish::Plugin::Type::Photo,
    Photish::Plugin::Type::Image,
    Photish::Plugin::Type::Page,
  ].include?(type)
end

Public Instance Methods

yell_very_loud() click to toggle source
# File lib/photish/assets/example/site/_plugins/yell_loud.rb, line 12
def yell_very_loud
  text = "Yelling \"#{name}\" from a plugin!"
  "<span style=\"font-weight:bold;color:red;font-size:200%;\">#{text}</span>"
end