Class: ApiDef::Element
- Inherits:
-
Object
- Object
- ApiDef::Element
- Includes:
- Support::AttrArray, Support::AttrUno, Support::AttrUnoArray
- Defined in:
- lib/api_def/element.rb
Instance Method Summary collapse
-
#initialize(name = nil, options = {}) {|_self| ... } ⇒ Element
constructor
A new instance of Element.
- #on_options(options) ⇒ Object
Methods included from Support::AttrUnoArray
Methods included from Support::AttrArray
Methods included from Support::AttrUno
Constructor Details
#initialize(name = nil, options = {}) {|_self| ... } ⇒ Element
Returns a new instance of Element.
8 9 10 11 12 |
# File 'lib/api_def/element.rb', line 8 def initialize(name = nil, = {}) self.name name self.() yield self if block_given? end |
Instance Method Details
#on_options(options) ⇒ Object
14 15 16 |
# File 'lib/api_def/element.rb', line 14 def () self.desc [:desc] end |