Class: RubyWarrior::Config
- Inherits:
-
Object
- Object
- RubyWarrior::Config
- Defined in:
- lib/ruby_warrior/config.rb
Class Attribute Summary collapse
-
.delay ⇒ Object
Returns the value of attribute delay.
-
.in_stream ⇒ Object
Returns the value of attribute in_stream.
-
.out_stream ⇒ Object
Returns the value of attribute out_stream.
- .path_prefix ⇒ Object
-
.practice_level ⇒ Object
Returns the value of attribute practice_level.
-
.skip_input ⇒ Object
writeonly
Sets the attribute skip_input.
Class Method Summary collapse
Class Attribute Details
.delay ⇒ Object
Returns the value of attribute delay.
4 5 6 |
# File 'lib/ruby_warrior/config.rb', line 4 def delay @delay end |
.in_stream ⇒ Object
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_stream ⇒ Object
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_prefix ⇒ Object
7 8 9 |
# File 'lib/ruby_warrior/config.rb', line 7 def path_prefix @path_prefix || "." end |
.practice_level ⇒ Object
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
5 6 7 |
# File 'lib/ruby_warrior/config.rb', line 5 def skip_input=(value) @skip_input = value end |
Class Method Details
.reset ⇒ Object
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
11 12 13 |
# File 'lib/ruby_warrior/config.rb', line 11 def skip_input? @skip_input end |