Class: Callme::DepMetadata::Dsl

Inherits:
Object
  • Object
show all
Defined in:
lib/callme/dep_metadata.rb

Instance Method Summary collapse

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, options)
  @args << Callme::DepMetadata::Attribute.new(name, options)
end

#attr(name, options) ⇒ Object



67
68
69
# File 'lib/callme/dep_metadata.rb', line 67

def attr(name, options)
  @attrs << Callme::DepMetadata::Attribute.new(name, options)
end