Module: XMLable::Handlers::Mixins::Tag
- Defined in:
- lib/xmlable/handlers/mixins/tag.rb
Overview
Tag module contains tagable handlers
Instance Attribute Summary collapse
-
#tag ⇒ String
readonly
Returns XML object tag name.
Instance Method Summary collapse
Instance Attribute Details
#tag ⇒ String (readonly)
Returns XML object tag name
9 10 11 |
# File 'lib/xmlable/handlers/mixins/tag.rb', line 9 def tag @tag end |
Instance Method Details
#initialize(*args, &block) ⇒ Object
14 15 16 17 18 19 20 |
# File 'lib/xmlable/handlers/mixins/tag.rb', line 14 def initialize(*args, &block) super if args.last.is_a?(Hash) @tag = args.last.delete(:tag) @tag = @tag ? @tag.to_s : @name end end |