Module: PlaceBear::Helpers
- Defined in:
- lib/placebear/helpers.rb
Instance Method Summary collapse
- #place_bear(width = nil, height = nil, grayscale = false, img_class: nil) ⇒ Object
- #place_bear_grayscale(width = nil, height = nil, img_class: nil) ⇒ Object (also: #place_bear_gray)
Instance Method Details
#place_bear(width = nil, height = nil, grayscale = false, img_class: nil) ⇒ Object
3 4 5 |
# File 'lib/placebear/helpers.rb', line 3 def place_bear(width = nil, height = nil, grayscale = false, img_class: nil) PlaceBear.image(width, height, grayscale: grayscale, img_class: img_class) end |
#place_bear_grayscale(width = nil, height = nil, img_class: nil) ⇒ Object Also known as: place_bear_gray
8 9 10 |
# File 'lib/placebear/helpers.rb', line 8 def place_bear_grayscale(width = nil, height = nil, img_class: nil) PlaceBear.grayscale(width, height, img_class: img_class) end |