Class: JBundle::File

Inherits:
Object
  • Object
show all
Includes:
Enumerable, BundleUtils
Defined in:
lib/jbundle/file.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name) ⇒ File

Returns a new instance of File.



10
11
12
# File 'lib/jbundle/file.rb', line 10

def initialize(name)
  @original_name, @name = parse_name(name)
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



8
9
10
# File 'lib/jbundle/file.rb', line 8

def name
  @name
end

#original_nameObject (readonly)

Returns the value of attribute original_name.



8
9
10
# File 'lib/jbundle/file.rb', line 8

def original_name
  @original_name
end

Instance Method Details

#each {|original_name| ... } ⇒ Object

Yields:



14
15
16
# File 'lib/jbundle/file.rb', line 14

def each(&block)
  yield original_name
end