Class: ActiveVlc::DSL::Base
- Inherits:
-
Object
- Object
- ActiveVlc::DSL::Base
- Defined in:
- lib/activevlc/dsl/base.rb
Direct Known Subclasses
Instance Method Summary collapse
-
#initialize(context) ⇒ Base
constructor
A new instance of Base.
- #method_missing(sym, *args, &block) ⇒ Object
- #param(name, value = nil) ⇒ Object (also: #p)
Constructor Details
#initialize(context) ⇒ Base
Returns a new instance of Base.
14 15 16 |
# File 'lib/activevlc/dsl/base.rb', line 14 def initialize(context) @context = context end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(sym, *args, &block) ⇒ Object
18 19 20 |
# File 'lib/activevlc/dsl/base.rb', line 18 def method_missing(sym, *args, &block) __option(normalize_option(sym), args.first, &block) end |