Class: Sassy::SCSS::Builder
- Inherits:
-
Object
- Object
- Sassy::SCSS::Builder
- Defined in:
- lib/sassy/scss/builder.rb
Instance Method Summary collapse
-
#initialize(&block) ⇒ Builder
constructor
A new instance of Builder.
- #r(selector, &block) ⇒ Object
Constructor Details
#initialize(&block) ⇒ Builder
Returns a new instance of Builder.
5 6 7 |
# File 'lib/sassy/scss/builder.rb', line 5 def initialize(&block) instance_eval(&block) end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
Instance Method Details
#r(selector, &block) ⇒ Object
11 12 13 |
# File 'lib/sassy/scss/builder.rb', line 11 def r(selector, &block) rule_set.add(selector, &block) end |