Class: Formica::DSL
- Inherits:
-
Object
- Object
- Formica::DSL
- Defined in:
- lib/formica.rb
Instance Attribute Summary collapse
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
-
#initialize ⇒ DSL
constructor
A new instance of DSL.
- #option(**kwargs) ⇒ Object
Constructor Details
#initialize ⇒ DSL
Returns a new instance of DSL.
98 99 100 |
# File 'lib/formica.rb', line 98 def initialize = [] end |
Instance Attribute Details
#options ⇒ Object (readonly)
Returns the value of attribute options.
96 97 98 |
# File 'lib/formica.rb', line 96 def end |
Instance Method Details
#option(**kwargs) ⇒ Object
102 103 104 |
# File 'lib/formica.rb', line 102 def option(**kwargs) << ::Formica::Option.new(*kwargs.values_at(*::Formica::Option.members)) end |