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.
# 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
# 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.