Class: Cure::Configuration::DefaultFileHandler

Inherits:
Object
  • Object
show all
Defined in:
lib/cure/config.rb

Direct Known Subclasses

FileContentsHandler, FileHandler, PathnameHandler

Instance Attribute Summary collapse

Instance Method Summary collapse

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_nameObject (readonly)

Returns the value of attribute ref_name.



112
113
114
# File 'lib/cure/config.rb', line 112

def ref_name
  @ref_name
end

#typeObject (readonly)

Returns the value of attribute type.



112
113
114
# File 'lib/cure/config.rb', line 112

def type
  @type
end

Instance Method Details

#descriptionObject

Raises:

  • (NotImplementedError)


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

Raises:

  • (NotImplementedError)


119
120
121
# File 'lib/cure/config.rb', line 119

def with_file(&_block)
  raise NotImplementedError, "#{self.class} has not implemented method '#{__method__}'"
end