Module: RubyMethod

Defined in:
lib/ycn/ruby/ruby_method.rb

Instance Method Summary collapse

Instance Method Details

#ruby_show_contentObject



10
11
12
13
14
15
16
17
18
19
# File 'lib/ycn/ruby/ruby_method.rb', line 10

def ruby_show_content
  #~ @content.split("\n").map { |line|
    #~ unless line =~ /[\+\(]\s*$/
      #~ line += ';'
    #~ end
    
    #~ line
  #~ }.join("\n")
  @content
end

#ruby_signatureObject



2
3
4
5
6
7
8
# File 'lib/ycn/ruby/ruby_method.rb', line 2

def ruby_signature
  params = @parameters.map{ |p|
    "#{p} p#{p[0].chr.downcase}_#{p}"
  }.join(', ')
  
  "def #{@name} #{params}"
end