Class: EacRubyUtils::RequireSub
- Defined in:
- lib/eac_ruby_utils/require_sub.rb
Constant Summary collapse
- BASE_OPTION_KEY =
:base- INCLUDE_MODULES_OPTION_KEY =
:include_modules- REQUIRE_DEPENDENCY_OPTION_KEY =
:require_dependency
Instance Attribute Summary collapse
-
#file ⇒ Object
readonly
Returns the value of attribute file.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
- #apply ⇒ Object
-
#initialize(file, options = {}) ⇒ RequireSub
constructor
A new instance of RequireSub.
Constructor Details
#initialize(file, options = {}) ⇒ RequireSub
17 18 19 20 |
# File 'lib/eac_ruby_utils/require_sub.rb', line 17 def initialize(file, = {}) @file = file = end |
Instance Attribute Details
#file ⇒ Object (readonly)
Returns the value of attribute file.
15 16 17 |
# File 'lib/eac_ruby_utils/require_sub.rb', line 15 def file @file end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
15 16 17 |
# File 'lib/eac_ruby_utils/require_sub.rb', line 15 def end |
Instance Method Details
#apply ⇒ Object
22 23 24 25 |
# File 'lib/eac_ruby_utils/require_sub.rb', line 22 def apply require_sub_files include_modules end |