Class: RubyWarrior::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/ruby_warrior/config.rb

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.delayObject

Returns the value of attribute delay.



4
5
6
# File 'lib/ruby_warrior/config.rb', line 4

def delay
  @delay
end

.in_streamObject

Returns the value of attribute in_stream.



4
5
6
# File 'lib/ruby_warrior/config.rb', line 4

def in_stream
  @in_stream
end

.out_streamObject

Returns the value of attribute out_stream.



4
5
6
# File 'lib/ruby_warrior/config.rb', line 4

def out_stream
  @out_stream
end

.path_prefixObject



7
8
9
# File 'lib/ruby_warrior/config.rb', line 7

def path_prefix
  @path_prefix || "."
end

.practice_levelObject

Returns the value of attribute practice_level.



4
5
6
# File 'lib/ruby_warrior/config.rb', line 4

def practice_level
  @practice_level
end

.skip_input=(value) ⇒ Object (writeonly)

Sets the attribute skip_input

Parameters:

  • value

    the value to set the attribute skip_input to.



5
6
7
# File 'lib/ruby_warrior/config.rb', line 5

def skip_input=(value)
  @skip_input = value
end

Class Method Details

.resetObject



15
16
17
18
19
# File 'lib/ruby_warrior/config.rb', line 15

def reset
  [:@path_prefix, :@skip_input, :@delay, :@in_stream, :@out_stream, :@practice_level].each do |i|
    remove_instance_variable(i) if instance_variable_defined?(i)
  end
end

.skip_input?Boolean

Returns:

  • (Boolean)


11
12
13
# File 'lib/ruby_warrior/config.rb', line 11

def skip_input?
  @skip_input
end