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
Returns a new instance of RequireSub.
19 20 21 22 |
# File 'lib/eac_ruby_utils/require_sub.rb', line 19 def initialize(file, = {}) @file = file = end |
Instance Attribute Details
#file ⇒ Object (readonly)
Returns the value of attribute file.
17 18 19 |
# File 'lib/eac_ruby_utils/require_sub.rb', line 17 def file @file end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
17 18 19 |
# File 'lib/eac_ruby_utils/require_sub.rb', line 17 def end |
Instance Method Details
#apply ⇒ Object
24 25 26 27 |
# File 'lib/eac_ruby_utils/require_sub.rb', line 24 def apply require_sub_files include_modules end |