[ create a new paste ] login | about

Link: http://codepad.org/ZmbL2lQX    [ raw code | fork | 1 comment ]

kabhwan - Ruby, pasted on Apr 23:
#_class_ <b>comment</b> +test+
#  Indenting...
#woowang, \+good\+ method_1
#--
#Normal Comment, so it does not include to rdoc
#++
#
#So rdoc comment is back!!
#= Link Test
#
#link?? http://dev.heartsavior.net
#
#== Link => Image??
#
#http://sstatic.naver.com/search/100_thumb_nx3/71/32471.jpg
#
#My Blog[http://www.heartsavior.net]
#
#{MyBrute,fishing}[http://heartsavior.mybrute.com]
#
#= List Test
# * List1
#   (Comment on List1)
# * List2
#
# ----
#Why RDoc doesn't make line bar ?? I'm wrong??
#
#[cat]      cat is cat
#[+cat+]    command that copies stdin to stdout
# 
#cat::      cat is cat
#+cat+::    command that copies
#           stdin to stdout
#
#<tt>--output</tt> <i>name [, name]</i>::
#     output parameter
#     that you are one
#
#<tt>--output</tt> <i>name [, name]</i>:: output parameter
#                                          that you are one
#
class TestRDoc

  # test do appear RDoc
  def test
    
  end

  # method_1 doe appear RDoc
  def method_1
    
  end

  # class_method_1 do appear RDoc
  def TestRDoc.class_method_1
    
  end
end


Output:
No errors or program output.


Create a new paste based on this one


Comments:
posted by kabhwan on Apr 23

class TestRDoc2
def fred
line = 'Line'
address = 'Address'

yield line, address
end

def fred2 # :yields: index, position
line = 'Line'
address = 'Address'

yield line, address
end

private
def private_fred
puts '.'
end

# Add private method to RDoc
def private_fred_2 # :doc:
puts '..'
end
end

module SM #:nodoc:
class Input
end
end

module Markup #:nodoc: all
class Output
end
end
reply