module PlaceBear::Helpers

Public Instance Methods

place_bear(width = nil, height = nil, options = {}) click to toggle source

@see PlaceBear.image

# File lib/placebear/helpers.rb, line 3
def place_bear(width = nil, height = nil, options = {})
  options[:img_class] ||= nil
  PlaceBear.image(width, height, grayscale: false, img_class: options[:img_class])
end
place_bear_gray(width = nil, height = nil, options = {})
place_bear_grayscale(width = nil, height = nil, options = {}) click to toggle source

@see PlaceBear.grayscale

# File lib/placebear/helpers.rb, line 9
def place_bear_grayscale(width = nil, height = nil, options = {})
  options[:img_class] ||= nil
  PlaceBear.grayscale(width, height, img_class: options[:img_class])
end
Also aliased as: place_bear_gray