Class Markaby::CssProxy

  1. lib/markaby/cssproxy.rb
Parent: Object

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.

Methods

public class

  1. new

public instance

  1. respond_to?

Public class methods

new (builder, stream, sym)
[show source]
    # File lib/markaby/cssproxy.rb, line 7
 7:     def initialize(builder, stream, sym)
 8:       @builder = builder
 9:       @stream  = stream
10:       @sym     = sym
11:       @attrs   = {}
12: 
13:       @original_stream_length = @stream.length
14: 
15:       @builder.tag! sym
16:     end

Public instance methods

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