Class: Callme::DepMetadata::Dsl
- Inherits:
-
Object
- Object
- Callme::DepMetadata::Dsl
- Defined in:
- lib/callme/dep_metadata.rb
Instance Method Summary collapse
- #arg(name, options) ⇒ Object
- #attr(name, options) ⇒ Object
-
#initialize(attrs) ⇒ Dsl
constructor
A new instance of Dsl.
Constructor Details
#initialize(attrs) ⇒ Dsl
Returns a new instance of Dsl.
63 64 65 |
# File 'lib/callme/dep_metadata.rb', line 63 def initialize(attrs) @attrs = attrs end |
Instance Method Details
#arg(name, options) ⇒ Object
71 72 73 |
# File 'lib/callme/dep_metadata.rb', line 71 def arg(name, ) @args << Callme::DepMetadata::Attribute.new(name, ) end |
#attr(name, options) ⇒ Object
67 68 69 |
# File 'lib/callme/dep_metadata.rb', line 67 def attr(name, ) @attrs << Callme::DepMetadata::Attribute.new(name, ) end |