Class: Valise::ReadOnlySearchRoot

Inherits:
SearchRoot show all
Defined in:
lib/valise/search-root.rb

Direct Known Subclasses

DefinedDefaults

Instance Attribute Summary

Attributes inherited from SearchRoot

#segments

Instance Method Summary collapse

Methods inherited from SearchRoot

#each, #full_path, #get_from, #initialize, #inspect, #present?, #to_s

Methods included from Unpath

#clean_pathname, #containing_workspace, #current_directory, #file_from_backtrace, #from_here, #make_pathname, #starting_directory, #up_to, #up_until

Constructor Details

This class inherits a constructor from Valise::SearchRoot

Instance Method Details

#writable?(segments) ⇒ Boolean

Returns:

  • (Boolean)


70
71
72
# File 'lib/valise/search-root.rb', line 70

def writable?(segments)
  false
end

#write(item) ⇒ Object

Raises:



74
75
76
# File 'lib/valise/search-root.rb', line 74

def write(item)
  raise Errors::ReadOnly
end