Class: Exfuz::Configuration
- Inherits:
-
Object
- Object
- Exfuz::Configuration
- Includes:
- Singleton
- Defined in:
- lib/exfuz/configuration.rb
Instance Attribute Summary collapse
-
#dirname ⇒ Object
readonly
Returns the value of attribute dirname.
Instance Method Summary collapse
- #book_name_path_type ⇒ Object
- #cell_position_format ⇒ Object
- #fuzzy_finder_command_type ⇒ Object
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
- #jump_positions? ⇒ Boolean
- #line_sep ⇒ Object
- #split_new_line ⇒ Object
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
18 19 20 21 |
# File 'lib/exfuz/configuration.rb', line 18 def initialize @dirname = Pathname.new(Dir.pwd) set_data end |
Instance Attribute Details
#dirname ⇒ Object (readonly)
Returns the value of attribute dirname.
14 15 16 |
# File 'lib/exfuz/configuration.rb', line 14 def dirname @dirname end |
Instance Method Details
#book_name_path_type ⇒ Object
23 24 25 |
# File 'lib/exfuz/configuration.rb', line 23 def book_name_path_type @data[:book_name_path_type] end |
#cell_position_format ⇒ Object
27 28 29 |
# File 'lib/exfuz/configuration.rb', line 27 def cell_position_format @data[:cell_position_format] end |
#fuzzy_finder_command_type ⇒ Object
43 44 45 |
# File 'lib/exfuz/configuration.rb', line 43 def fuzzy_finder_command_type @data[:fuzzy_finder_command_type].to_sym end |
#jump_positions? ⇒ Boolean
39 40 41 |
# File 'lib/exfuz/configuration.rb', line 39 def jump_positions? @data[:jump_positions] end |
#line_sep ⇒ Object
31 32 33 |
# File 'lib/exfuz/configuration.rb', line 31 def line_sep @data[:line_sep] end |
#split_new_line ⇒ Object
35 36 37 |
# File 'lib/exfuz/configuration.rb', line 35 def split_new_line @data[:split_new_line] end |