module RVNC

Constants

VARIABLE_NODES
VERSION

Public Class Methods

collect(root) click to toggle source
# File lib/rvnc.rb, line 16
def self.collect(root)
  if File.directory?(root)
    Dir.glob("#{root}/**/*.rb").map do |path|
      variables(path)
    end.flatten
  else
    variables(root)
  end
end
variables(path) click to toggle source
# File lib/rvnc.rb, line 26
def self.variables(path)
  SourceFile.new(File.expand_path(path)).variables
end