Class: Codebreaker::Rules
- Inherits:
-
Object
- Object
- Codebreaker::Rules
- Defined in:
- lib/entities/rules.rb
Constant Summary collapse
- FOLDER_PATH =
'./'.freeze
- FILE_PATH =
'rules'.freeze
- FORMAT_PATH =
'.txt'.freeze
- PATH =
FOLDER_PATH + FILE_PATH + FORMAT_PATH
Instance Method Summary collapse
Instance Method Details
#show_rules ⇒ Object
8 9 10 11 12 13 |
# File 'lib/entities/rules.rb', line 8 def show_rules File.open(PATH, 'r') do |f| f.each_line { |line| puts line } f.close end end |