class Cosme::Cosmetic

Public Class Methods

new(cosmetic) click to toggle source
# File lib/cosme/cosmetic.rb, line 5
def initialize(cosmetic)
  @cosmetic = cosmetic
end

Public Instance Methods

render(options) click to toggle source
# File lib/cosme/cosmetic.rb, line 9
def render(options)
  raise Cosme::CosmeticNotFound, 'Cosmetic is not found. Please call `Cosme#define` method first.' unless @cosmetic
  @cosmetic[:render] = options
end