Class: Paggio::CSS::Font
- Inherits:
- BasicObject
- Defined in:
- lib/paggio/css/font.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name) ⇒ Font
constructor
A new instance of Font.
- #method_missing(*args, &block) ⇒ Object
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
#name ⇒ Object (readonly)
Returns the value of attribute name.
14 15 16 |
# File 'lib/paggio/css/font.rb', line 14 def name @name end |