Class: Far::File
- Inherits:
-
Object
- Object
- Far::File
- Defined in:
- lib/far/file.rb
Instance Attribute Summary collapse
-
#changed_version ⇒ Object
Returns the value of attribute changed_version.
-
#changes ⇒ Object
Returns the value of attribute changes.
-
#colorized_name ⇒ Object
Returns the value of attribute colorized_name.
-
#find ⇒ Object
Returns the value of attribute find.
-
#name ⇒ Object
Returns the value of attribute name.
-
#original_version ⇒ Object
Returns the value of attribute original_version.
-
#parts ⇒ Object
writeonly
Sets the attribute parts.
Instance Method Summary collapse
-
#initialize(name, find) ⇒ File
constructor
A new instance of File.
Constructor Details
#initialize(name, find) ⇒ File
Returns a new instance of File.
5 6 7 8 |
# File 'lib/far/file.rb', line 5 def initialize(name, find) @name = name @parts ||= `ack #{find} #{name} /dev/null`.split("\n") end |
Instance Attribute Details
#changed_version ⇒ Object
Returns the value of attribute changed_version.
3 4 5 |
# File 'lib/far/file.rb', line 3 def changed_version @changed_version end |
#changes ⇒ Object
Returns the value of attribute changes.
3 4 5 |
# File 'lib/far/file.rb', line 3 def changes @changes end |
#colorized_name ⇒ Object
Returns the value of attribute colorized_name.
3 4 5 |
# File 'lib/far/file.rb', line 3 def colorized_name @colorized_name end |
#find ⇒ Object
Returns the value of attribute find.
3 4 5 |
# File 'lib/far/file.rb', line 3 def find @find end |
#name ⇒ Object
Returns the value of attribute name.
3 4 5 |
# File 'lib/far/file.rb', line 3 def name @name end |
#original_version ⇒ Object
Returns the value of attribute original_version.
3 4 5 |
# File 'lib/far/file.rb', line 3 def original_version @original_version end |
#parts=(value) ⇒ Object
Sets the attribute parts
3 4 5 |
# File 'lib/far/file.rb', line 3 def parts=(value) @parts = value end |