Class: Markaby::CssProxy

### Home Classes Methods

### In Files

- lib/markaby/cssproxy.rb

### Parent

Object

### Methods

- ::new
- #respond_to?

### Files

- README.rdoc

### Class/Module Index

Quicksearch

- Markaby
- Markaby::Builder
- Markaby::BuilderTags
- Markaby::CssProxy
- Markaby::Fragment
- Markaby::InvalidXhtmlError
- Markaby::Rails
- Markaby::Rails::ActionControllerHelpers
- Markaby::Rails::Helpers
- Markaby::Rails::RailsBuilder
- Markaby::Rails::RailsBuilder::FormHelperProxy
- Markaby::Rails::RailsBuilder::OutputBuffer
- Markaby::Rails::Template
- Markaby::Rails::TemplateHandler
- Markaby::Stream
- Markaby::Tilt
- Markaby::XHTMLFrameset
- Markaby::XHTMLStrict
- Markaby::XHTMLTransitional
- Markaby::XmlMarkup
- Sinatra
- Sinatra::Base
- Sinatra::Templates
- Kernel
- Object

No matching classes.

# Markaby::CssProxy

Class used by Markaby::Builder to store element options. Methods called against the CssProxy object are added as element classes or IDs.

See the README for examples.

### Public Class Methods

new(builder, stream, sym) click to toggle source

    # File lib/markaby/cssproxy.rb, line 7
    def initialize(builder, stream, sym)
      @builder = builder
      @stream  = stream
      @sym     = sym
      @attrs   = {}

      @original_stream_length = @stream.length

      @builder.tag! sym
    end

### Public Instance Methods

respond_to?(sym, include_private = false) click to toggle source

    # File lib/markaby/cssproxy.rb, line 18
    def respond_to?(sym, include_private = false)
      include_private || !private_methods.map { |m| m.to_sym }.include?(sym.to_sym) ? true : false
    end

[Validate]

Generated with the Darkfish Rdoc Generator 2.