Module: FCSHD

Defined in:
lib/fcshd.rb,
lib/fcshd/logger.rb,
lib/fcshd/server.rb,
lib/fcshd/problem.rb,
lib/fcshd/version.rb,
lib/fcshd/compiler.rb,
lib/fcshd/flex-home.rb,
lib/fcshd/transcript.rb,
lib/fcshd/source-location.rb,
lib/fcshd/transcript-item.rb,
lib/fcshd/transcript-parser.rb

Defined Under Namespace

Modules: FlexHome Classes: Compiler, Logger, Problem, Server, SourceLocation, Transcript

Constant Summary collapse

VERSION =
"0.8.0"

Class Method Summary collapse

Class Method Details

.trim(string) ⇒ Object



2
3
4
# File 'lib/fcshd.rb', line 2

def self.trim(string)
  string.gsub(/\s+/, " ").gsub(/^ | $/, "")
end