Class: JBundle::File
- Inherits:
-
Object
- Object
- JBundle::File
- Includes:
- Enumerable, BundleUtils
- Defined in:
- lib/jbundle/file.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#original_name ⇒ Object
readonly
Returns the value of attribute original_name.
Instance Method Summary collapse
- #each {|original_name| ... } ⇒ Object
-
#initialize(name) ⇒ File
constructor
A new instance of File.
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
#name ⇒ Object (readonly)
Returns the value of attribute name.
8 9 10 |
# File 'lib/jbundle/file.rb', line 8 def name @name end |
#original_name ⇒ Object (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
14 15 16 |
# File 'lib/jbundle/file.rb', line 14 def each(&block) yield original_name end |