Class: Cure::Configuration::DefaultFileHandler
- Inherits:
-
Object
- Object
- Cure::Configuration::DefaultFileHandler
- Defined in:
- lib/cure/config.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#ref_name ⇒ Object
readonly
Returns the value of attribute ref_name.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
- #description ⇒ Object
-
#initialize(type, ref_name) ⇒ DefaultFileHandler
constructor
A new instance of DefaultFileHandler.
- #with_file(&_block) ⇒ Object
Constructor Details
#initialize(type, ref_name) ⇒ DefaultFileHandler
Returns a new instance of DefaultFileHandler.
114 115 116 117 |
# File 'lib/cure/config.rb', line 114 def initialize(type, ref_name) @type = type @ref_name = ref_name end |
Instance Attribute Details
#ref_name ⇒ Object (readonly)
Returns the value of attribute ref_name.
112 113 114 |
# File 'lib/cure/config.rb', line 112 def ref_name @ref_name end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
112 113 114 |
# File 'lib/cure/config.rb', line 112 def type @type end |
Instance Method Details
#description ⇒ Object
123 124 125 |
# File 'lib/cure/config.rb', line 123 def description raise NotImplementedError, "#{self.class} has not implemented method '#{__method__}'" end |
#with_file(&_block) ⇒ Object
119 120 121 |
# File 'lib/cure/config.rb', line 119 def with_file(&_block) raise NotImplementedError, "#{self.class} has not implemented method '#{__method__}'" end |