Class: Peanuts::Mappings::Attribute
- Inherits:
-
MemberMapping
- Object
- Peanuts::Mapping
- MemberMapping
- Peanuts::Mappings::Attribute
- Includes:
- SingleMapping, ValueMapping
- Defined in:
- lib/peanuts/mappings.rb
Instance Attribute Summary
Attributes inherited from MemberMapping
Attributes inherited from Peanuts::Mapping
#local_name, #namespace_uri, #options, #prefix
Instance Method Summary collapse
-
#initialize(name, type, options) ⇒ Attribute
constructor
A new instance of Attribute.
Methods inherited from MemberMapping
#clear, #define_accessors, #read, #write
Methods inherited from Peanuts::Mapping
Constructor Details
#initialize(name, type, options) ⇒ Attribute
Returns a new instance of Attribute.
200 201 202 203 |
# File 'lib/peanuts/mappings.rb', line 200 def initialize(name, type, ) super raise ArgumentError, 'a namespaced attribute must have namespace prefix' if namespace_uri && !prefix end |