Class: Rwath

Inherits:
Object
  • Object
show all
Defined in:
lib/rwath.rb,
lib/rwath/config.rb,
lib/rwath/process.rb,
lib/rwath/version.rb

Defined Under Namespace

Classes: Config, Process

Constant Summary collapse

VERSION =
"0.0.1"

Instance Method Summary collapse

Constructor Details

#initialize(config: Config.new) ⇒ Rwath

Returns a new instance of Rwath.



6
7
8
# File 'lib/rwath.rb', line 6

def initialize(config: Config.new)
  @process = Process.new("swath #{config.to_s}")
end

Instance Method Details

#split(text) ⇒ Object



10
11
12
# File 'lib/rwath.rb', line 10

def split(text)
  @process.split_exec(text)
end