class RBT::Cookbooks::Registered

Constants

SHOW_PROGRAM_NAME
#

SHOW_PROGRAM_NAME

If true then we will show the program in question.

#

Public Class Methods

new( optional_args = ARGV ) click to toggle source
#

initialize

#
# File lib/rbt/registered/registered.rb, line 31
def initialize(
    optional_args = ARGV
  )
end

Public Instance Methods

hash()
Alias for: hash_to_be_stored?
hash?()
Alias for: hash_to_be_stored?
hash_to_be_stored?() click to toggle source
#

hash_to_be_stored?

This is our main dataset.

#
# File lib/rbt/registered/registered.rb, line 63
def hash_to_be_stored?
  @hash_to_be_stored
end
Also aliased as: hash?, hash
input?()
Alias for: this_program?
reset() click to toggle source
#

reset

#
Calls superclass method RBT::Base#reset
# File lib/rbt/registered/registered.rb, line 39
def reset
  super()
  infer_the_namespace
end
ruby_src_dir?() click to toggle source
#

ruby_src_dir?

This refers to the ruby files on my home directory; it’s not useful for other users of this project.

#
# File lib/rbt/registered/registered.rb, line 74
def ruby_src_dir?
  RUBY_SRC_DIR_AT_HOME
end
ruby_src_dir_for_the_registered_yaml_files?() click to toggle source
#

ruby_src_dir_for_the_registered_yaml_files?

This is specifically for my home directory, the registered/ subdirectory.

#
# File lib/rbt/registered/registered.rb, line 84
def ruby_src_dir_for_the_registered_yaml_files?
  "#{ruby_src_dir?}rbt/lib/rbt/yaml/registered/"
end
set_this_program(i) click to toggle source
#

set_this_program

#
# File lib/rbt/registered/registered.rb, line 47
def set_this_program(i)
  @this_program = i
end
this_program?() click to toggle source
#

this_program?

#
# File lib/rbt/registered/registered.rb, line 54
def this_program?
  @this_program
end
Also aliased as: input?