Sha256: 8d75a581a7cbb68646210365b8e2440a23f6ee4d160f207616003dfb75001717

Contents?: true

Size: 330 Bytes

Versions: 10

Compression:

Stored size: 330 Bytes

Contents

module Weskit::WML
  class Root < Items
    include Mixins::Searchable, Mixins::Validator

    def << item
      raise_unless Item, item
      (append? item) ? append(item) : add(item)
      self
    end

    def find name, nested = false
      find_elements name, nested
    end

    alias_method :method_missing, :find
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

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