Class: EacRubyUtils::RequireSub

Inherits:
Object
  • Object
show all
Includes:
Listable
Defined in:
lib/eac_ruby_utils/require_sub.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(file, options = {}) ⇒ RequireSub

Returns a new instance of RequireSub.


19
20
21
22
# File 'lib/eac_ruby_utils/require_sub.rb', line 19

def initialize(file, options = {})
  @file = file
  @options = self.class.lists.option.hash_keys_validate!(options)
end

Instance Attribute Details

#fileObject (readonly)

Returns the value of attribute file


17
18
19
# File 'lib/eac_ruby_utils/require_sub.rb', line 17

def file
  @file
end

#optionsObject (readonly)

Returns the value of attribute options


17
18
19
# File 'lib/eac_ruby_utils/require_sub.rb', line 17

def options
  @options
end

Instance Method Details

#applyObject


24
25
26
27
# File 'lib/eac_ruby_utils/require_sub.rb', line 24

def apply
  require_sub_files
  include_modules
end