Parent

Files

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.