Class: Paggio::CSS::Font

Inherits:
BasicObject
Defined in:
lib/paggio/css/font.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name) ⇒ Font

Returns a new instance of Font.



16
17
18
19
20
21
# File 'lib/paggio/css/font.rb', line 16

def initialize(name)
  @name       = name
  @definition = Definition.new

  font family: name
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(*args, &block) ⇒ Object



23
24
25
# File 'lib/paggio/css/font.rb', line 23

def method_missing(*args, &block)
  @definition.__send__(*args, &block)
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



14
15
16
# File 'lib/paggio/css/font.rb', line 14

def name
  @name
end