Sha256: d77e57f72ef0829519e554a2ce2e01186eb2f92b1dbd4e715267018cc70917d0
Contents?: true
Size: 1.33 KB
Versions: 1
Compression:
Stored size: 1.33 KB
Contents
module Quarry class Markup #:nodoc: # = Step # class Step attr :parent attr :code attr :lineno def initialize(parent, code, lineno) @parent = parent @code = code.rstrip @lineno = lineno end alias_method :spec, :parent #def description # alias_method :description, :text #end end # = Macro # class Macro < Step attr :type def initialize(parent, code, lineno, type) super(parent, code, lineno) @type = type end end # = Header # class Header attr :parent attr :text attr :lineno def initialize(parent, text, lineno) @parent = parent @text = text.strip @lineno = lineno end alias_method :spec, :parent alias_method :description, :text end # = Comment # class Comment attr :parent attr :text attr :lineno def initialize(parent, text, lineno) @parent = parent @text = text.strip @lineno = lineno end alias_method :spec, :parent alias_method :description, :text # def type /^(\w{1,9})[:]/i =~ text $1.downcase.to_sym if $1 end alias_method :macro?, :type end end #class Markup end #module Quarry
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
quarry-0.5.0 | lib/quarry/markup/step.rb |