Class: Dictionaries::AskItalianWord

Inherits:
AskWordFromDictionary show all
Defined in:
lib/dictionaries/ask_italian_word.rb

Constant Summary collapse

DEFAULT_DELAY =

How long to wait before asking a question.

_.strip.to_f
THIS_FILE =
#

THIS_FILE

#
THIS_FILE_HERE = __FILE__.to_s

Constants inherited from AskWordFromDictionary

Dictionaries::AskWordFromDictionary::NAMESPACE

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from AskWordFromDictionary

#available_keys?, #be_verbose?, #brown, #build_url_www_string, #consider_opening_browser_page, #dataset?, #delay?, #do_ask_the_question, #feedback_delay, #feedback_help_options, #feedback_statistics, #feedback_total_amount_of_keys, #feedback_url, #feedback_yaml_file, #find_all_matches_for, #find_this_word_in_yaml_file, #generate_tab_completion, #green, #is_included?, #load_dataset, #load_the_english_file, #main_file?, #notify_the_user_that_we_will_next_open_this_file, #on_roebe?, #open_this_file_here, #open_yaml_file_in_main_editor, #opnn, #register_sigint, #reset, #result?, #return_random_word, #rev, #reveal_the_answer, #run, #sanitize_answer, #sanitize_dataset, #save_file, #save_last_question_asked, #save_line_number, #sdir, #search_for?, #set_delay, #set_last_word_solved, #set_search_for_this_word, #set_use_this_file, #set_xorg_buffer, #sfancy, #sfile, #show_delay_string, #show_every_word, #show_help, #simp, #store_last_question_asked_where?, #translate, #use_this_file?, #words?

Constructor Details

#initialize(commandline_arguments = ARGV) ⇒ AskItalianWord

#

initialize

#

57
58
59
# File 'lib/dictionaries/ask_italian_word.rb', line 57

def initialize(commandline_arguments = ARGV)
  super(commandline_arguments, self.class.main_file?)
end

Class Method Details

.[](i) ⇒ Object

#

AskItalianWord[]

#

64
65
66
# File 'lib/dictionaries/ask_italian_word.rb', line 64

def self.[](i)
  self.new(i)
end

.dataset?Boolean

#

AskItalianWord.dataset?

#

Returns:

  • (Boolean)

50
51
52
# File 'lib/dictionaries/ask_italian_word.rb', line 50

def self.dataset?
  YAML.load_file(self.main_file?)
end

.main_file?Boolean

#

AskItalianWord.main_file?

#

Returns:

  • (Boolean)

43
44
45
# File 'lib/dictionaries/ask_italian_word.rb', line 43

def self.main_file?
  Dictionaries.main_file?
end