Class: Bootscale::Entry
- Inherits:
-
Object
- Object
- Bootscale::Entry
- Defined in:
- lib/bootscale/entry.rb
Constant Summary collapse
- DL_EXTENSIONS =
[ RbConfig::CONFIG['DLEXT'], RbConfig::CONFIG['DLEXT2'], ].reject(&:empty?).map { |ext| ".#{ext}"}
- FEATURE_FILES =
"**/*{#{DOT_RB},#{DL_EXTENSIONS.join(',')}}"
- NORMALIZE_NATIVE_EXTENSIONS =
!DL_EXTENSIONS.include?(DOT_SO)
- ALTERNATIVE_NATIVE_EXTENSIONS_PATTERN =
/\.(o|bundle|dylib)\z/
Instance Attribute Summary collapse
-
#features ⇒ Object
readonly
Returns the value of attribute features.
-
#path ⇒ Object
readonly
Returns the value of attribute path.
Instance Method Summary collapse
-
#initialize(path) ⇒ Entry
constructor
A new instance of Entry.
Constructor Details
#initialize(path) ⇒ Entry
Returns a new instance of Entry.
13 14 15 16 17 |
# File 'lib/bootscale/entry.rb', line 13 def initialize(path) @path = path @path_prefix = path.end_with?('/'.freeze) ? path : "#{path}/" @features = list_features end |
Instance Attribute Details
#features ⇒ Object (readonly)
Returns the value of attribute features.
11 12 13 |
# File 'lib/bootscale/entry.rb', line 11 def features @features end |
#path ⇒ Object (readonly)
Returns the value of attribute path.
11 12 13 |
# File 'lib/bootscale/entry.rb', line 11 def path @path end |