Sha256: 81cc3493e17f1e3931c898998bfc32b6e3c54d8cba700465695ca58a135cd16a

Contents?: true

Size: 293 Bytes

Versions: 10

Compression:

Stored size: 293 Bytes

Contents

module Weskit::WML
  class Attributes < Items
    undef_method :attrs, :attributes
    undef_method :elems, :elements

    def [] name
      name = ::Weskit::WML::Item.identifier name
      attribute(name).value
    end

    def << item
      append_attribute item
      self
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
weskit-0.3.6 lib/weskit/wml/attributes.rb
weskit-0.3.5 lib/weskit/wml/attributes.rb
weskit-0.3.4 lib/weskit/wml/attributes.rb
weskit-0.3.3 lib/weskit/wml/attributes.rb
weskit-0.3.2 lib/weskit/wml/attributes.rb
weskit-0.3.1 lib/weskit/wml/attributes.rb
weskit-0.3.0 lib/weskit/wml/attributes.rb
weskit-0.2.1 lib/weskit/wml/attributes.rb
weskit-0.2.0 lib/weskit/wml/attributes.rb
weskit-0.1.0 lib/weskit/wml/attributes.rb