Class: Cosme::Cosmetic
- Inherits:
-
Object
- Object
- Cosme::Cosmetic
- Defined in:
- lib/cosme/cosmetic.rb
Instance Method Summary collapse
-
#initialize(cosmetic) ⇒ Cosmetic
constructor
A new instance of Cosmetic.
- #render(options) ⇒ Object
Constructor Details
#initialize(cosmetic) ⇒ Cosmetic
Returns a new instance of Cosmetic.
5 6 7 |
# File 'lib/cosme/cosmetic.rb', line 5 def initialize(cosmetic) @cosmetic = cosmetic end |
Instance Method Details
#render(options) ⇒ Object
9 10 11 12 |
# File 'lib/cosme/cosmetic.rb', line 9 def render() raise Cosme::CosmeticNotFound, 'Cosmetic is not found. Please call `Cosme#define` method first.' unless @cosmetic @cosmetic[:render] = end |