Module: Nokogiri::Decorators::XBEL

Defined in:
lib/nokogiri/decorators/xbel/separator.rb,
lib/nokogiri/decorators/xbel/bookmark.rb,
lib/nokogiri/decorators/xbel/folder.rb,
lib/nokogiri/decorators/xbel/alias.rb,
lib/nokogiri/decorators/xbel.rb

Defined Under Namespace

Modules: Alias, Bookmark, Entry, Folder, Separator

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.extended(base) ⇒ Object


8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# File 'lib/nokogiri/decorators/xbel.rb', line 8

def self.extended(base)
  case base.name
  when 'title'
  when 'desc'
  when 'bookmark'
    base.extend Bookmark
  when 'folder'
    base.extend Folder
  when 'alias'
    base.extend Alias
  when 'separator'
    base.extend Separator
  when 'xbel'
    base.extend Folder
  end
end

Instance Method Details

#alias?Boolean

Returns true if this node is an alias.

Returns:

  • (Boolean)

94
# File 'lib/nokogiri/decorators/xbel.rb', line 94

def alias?; end

#bookmark?Boolean

Returns true if this node is a bookmark.

Returns:

  • (Boolean)

96
# File 'lib/nokogiri/decorators/xbel.rb', line 96

def bookmark?; end

#folder?Boolean

Returns true if this node is a folder.

Returns:

  • (Boolean)

98
# File 'lib/nokogiri/decorators/xbel.rb', line 98

def folder?; end

#separator?Boolean

Returns true if this node is a separator.

Returns:

  • (Boolean)

100
# File 'lib/nokogiri/decorators/xbel.rb', line 100

def separator?; end