Class: Cure::Configuration::PathnameHandler
- Inherits:
-
DefaultFileHandler
- Object
- DefaultFileHandler
- Cure::Configuration::PathnameHandler
- Defined in:
- lib/cure/config.rb
Instance Attribute Summary collapse
-
#pathname ⇒ Object
Returns the value of attribute pathname.
Attributes inherited from DefaultFileHandler
Instance Method Summary collapse
- #description ⇒ Object
-
#initialize(pathname, ref_name) ⇒ PathnameHandler
constructor
A new instance of PathnameHandler.
- #with_file {|@pathname, @ref_name| ... } ⇒ Object
Constructor Details
#initialize(pathname, ref_name) ⇒ PathnameHandler
Returns a new instance of PathnameHandler.
132 133 134 135 |
# File 'lib/cure/config.rb', line 132 def initialize(pathname, ref_name) super(:pathname, ref_name) @pathname = pathname end |
Instance Attribute Details
#pathname ⇒ Object
Returns the value of attribute pathname.
129 130 131 |
# File 'lib/cure/config.rb', line 129 def pathname @pathname end |
Instance Method Details
#description ⇒ Object
141 142 143 |
# File 'lib/cure/config.rb', line 141 def description @pathname.to_s end |
#with_file {|@pathname, @ref_name| ... } ⇒ Object
137 138 139 |
# File 'lib/cure/config.rb', line 137 def with_file(&_block) yield @pathname, @ref_name end |