Method: WSDSL::Documentation::ElementDoc#initialize
- Defined in:
- lib/documentation.rb
#initialize(name) ⇒ ElementDoc
Returns a new instance of ElementDoc.
33 34 35 36 37 |
# File 'lib/documentation.rb', line 33 def initialize(name) # raise ArgumentError, "An Element doc needs to be initialize by passing a hash with a ':name' keyed entry." unless opts.is_a?(Hash) && opts.has_key?(:name) @name = name @attributes = {} end |