Class Markaby::Fragment

  1. lib/markaby/builder.rb
Parent: ::Builder::BlankSlate

Every tag method in Markaby returns a Fragment. If any method gets called on the Fragment, the tag is removed from the Markaby stream and given back as a string. Usually the fragment is never used, though, and the stream stays intact.

For a more practical explanation, check out the README.


public class

  1. new

Public class methods

new (*args)
[show source]
     # File lib/markaby/builder.rb, line 274
274:     def initialize(*args)
275:       @stream, @start, @length = args
276:       @transformed_stream = false
277:     end