Top Level Namespace
Defined Under Namespace
Modules: HTMLStyleSheet, ResultIndexGenerator, Saikuro Classes: BaseFormater, EndableParseState, Filter, HTMLTokenCounterFormater, ParseBlock, ParseClass, ParseComment, ParseCond, ParseDef, ParseDoCond, ParseModule, ParseState, ParseStateFormater, ParseSymbol, StateHTMLComplexityFormater, TokenCounter, TokenCounterFormater
Instance Method Summary collapse
- #get_ruby_files(path) ⇒ Object
-
#seperate_file_from_path(path) ⇒ Object
Returns the path without the file.
Instance Method Details
#get_ruby_files(path) ⇒ Object
22 23 24 25 26 27 28 29 30 31 32 |
# File 'lib/saikuro.rb', line 22 def get_ruby_files(path) files = Array.new Find.find(path) do |f| if !FileTest.directory?(f) if f =~ /rb$/ files<< f end end end files end |
#seperate_file_from_path(path) ⇒ Object
Returns the path without the file
13 14 15 16 17 18 19 20 |
# File 'lib/saikuro.rb', line 13 def seperate_file_from_path(path) res = path.split("/") if res.size == 1 "" else res[0..res.size - 2].join("/") end end |