Class: Stowaway::TargetContext
- Inherits:
-
Object
- Object
- Stowaway::TargetContext
- Defined in:
- lib/stowaway/target_context.rb
Instance Attribute Summary collapse
-
#root ⇒ Object
readonly
Returns the value of attribute root.
Instance Method Summary collapse
-
#initialize(root) ⇒ TargetContext
constructor
A new instance of TargetContext.
- #path_relative_to_root(file_p) ⇒ Object
Constructor Details
#initialize(root) ⇒ TargetContext
Returns a new instance of TargetContext.
3 4 5 |
# File 'lib/stowaway/target_context.rb', line 3 def initialize(root) @root = root end |
Instance Attribute Details
#root ⇒ Object (readonly)
Returns the value of attribute root.
7 8 9 |
# File 'lib/stowaway/target_context.rb', line 7 def root @root end |