Sha256: aa18b556f3633168c2adf2c52f3cc574d40d6ddb5268809f472195aedcd3c74e

Contents?: true

Size: 266 Bytes

Versions: 11

Compression:

Stored size: 266 Bytes

Contents

require 'dub/function'

module Dub
  class Generator

    def comment(func)
      "/** #{func.original_signature}\n * #{func.source}\n */"
    end

    protected
      def indent(str, indent)
        str.gsub(/^/, ' ' * indent)
      end
  end # Generator
end # Dub

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
dub-1.0.0 lib/dub/generator.rb
dub-0.7.0 lib/dub/generator.rb
dub-0.6.6 lib/dub/generator.rb
dub-0.6.5 lib/dub/generator.rb
dub-0.6.4 lib/dub/generator.rb
dub-0.6.3 lib/dub/generator.rb
dub-0.6.2 lib/dub/generator.rb
dub-0.6.1 lib/dub/generator.rb
dub-0.6.0 lib/dub/generator.rb
dub-0.5.1 lib/dub/generator.rb
dub-0.5.0 lib/dub/generator.rb