Class: Callme::BeanMetadata::Dsl
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.
58 59 60 |
# File 'lib/callme/bean_metadata.rb', line 58 def initialize(attrs) @attrs = attrs end |
Instance Method Details
#arg(name, options) ⇒ Object
66 67 68 |
# File 'lib/callme/bean_metadata.rb', line 66 def arg(name, ) @args << Callme::BeanMetadata::Attribute.new(name, ) end |
#attr(name, options) ⇒ Object
62 63 64 |
# File 'lib/callme/bean_metadata.rb', line 62 def attr(name, ) @attrs << Callme::BeanMetadata::Attribute.new(name, ) end |