Module: Mab::Mixin::HTMLDefiners

### Home Classes Methods

### In Files

- lib/mab/mixin.rb

### Methods

- #define_empty_tag
- #define_empty_tags
- #define_tag
- #define_tags

### Class/Module Index

Quicksearch

- Mab
- Mab::Builder
- Mab::Indentation
- Mab::Mixin
- Mab::Mixin::Context
- Mab::Mixin::Error
- Mab::Mixin::HTML5
- Mab::Mixin::HTMLDefiners
- Mab::Mixin::Tag
- Mab::Mixin::XHTML5
- Mab::Mixin::XML
- Mab::PrettyBuilder
- Mab::RailsBuilder
- Mab::RailsHandler
- Mab::SimpleBuilder
- Object

No matching classes.

# Mab::Mixin::HTMLDefiners

### Public Instance Methods

define_empty_tag(meth, tag) click to toggle source

    # File lib/mab/mixin.rb, line 216
    def define_empty_tag(meth, tag)
      class_eval           def #{meth}(*args, &blk)            tag = mab_tag(:#{tag})            tag._has_content = false            tag._insert(*args, &blk)          end
    end

define_empty_tags(*tags) click to toggle source

    # File lib/mab/mixin.rb, line 226
    def define_empty_tags(*tags)
      tags.flatten.each do |tag|
        define_empty_tag(tag, tag)
      end
    end

define_tag(meth, tag) click to toggle source

    # File lib/mab/mixin.rb, line 200
    def define_tag(meth, tag)
      class_eval           def #{meth}(*args, &blk)            tag = mab_tag(:#{tag})            tag._has_content = true            tag._insert(*args, &blk)          end
    end

define_tags(*tags) click to toggle source

    # File lib/mab/mixin.rb, line 210
    def define_tags(*tags)
      tags.flatten.each do |tag|
        define_tag(tag, tag)
      end
    end

[Validate]

Generated with the Darkfish Rdoc Generator 2.