module GetComments

Constants

VERSION

Public Class Methods

from_file(filename) click to toggle source
# File lib/getcomments.rb, line 5
def self.from_file(filename)
  from_string(File.read filename)
end
from_string(code) click to toggle source
# File lib/getcomments.rb, line 9
def self.from_string(code)
  Code.new(code).comments
end