Class: Bootscale::Entry

Inherits:
Object
  • Object
show all
Defined in:
lib/bootscale/entry.rb

Constant Summary collapse

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

Instance Method Summary collapse

Constructor Details

#initialize(path) ⇒ Entry

Returns a new instance of Entry.



17
18
19
20
21
# File 'lib/bootscale/entry.rb', line 17

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.



15
16
17
# File 'lib/bootscale/entry.rb', line 15

def features
  @features
end

#path ⇒ Object (readonly)

Returns the value of attribute path.



15
16
17
# File 'lib/bootscale/entry.rb', line 15

def path
  @path
end