Class: Sokoban1::Config
- Inherits:
-
Object
- Object
- Sokoban1::Config
- Defined in:
- lib/sokoban/config.rb
Class Attribute Summary collapse
-
.show_ffi ⇒ Object
Returns the value of attribute show_ffi.
Class Method Summary collapse
Class Attribute Details
.show_ffi ⇒ Object
Returns the value of attribute show_ffi.
4 5 6 |
# File 'lib/sokoban/config.rb', line 4 def show_ffi @show_ffi end |
Class Method Details
.detect ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/sokoban/config.rb', line 5 def detect puts 'ruby in use:' rubyv = RUBY_VERSION if rubyv == "1.9.1" puts "1.9.1" @show_ffi = false elsif rubyv == "1.9.2" puts "1.9.2" @show_ffi = true else exit end end |