Class: Hx::StripPath

Inherits:
Object
  • Object
show all
Includes:
CircumfixPath
Defined in:
lib/hx.rb

Instance Method Summary collapse

Methods included from CircumfixPath

#initialize

Methods included from Filter

#each_entry

Methods included from View

#each_entry

Instance Method Details

#each_entry_path(selector) ⇒ Object



221
222
223
224
225
226
227
# File 'lib/hx.rb', line 221

def each_entry_path(selector)
  selector = selector.elide_circumfix(@prefix, @suffix)
  @input.each_entry_path(selector) do |path|
    yield strip_circumfix(path)
  end
  self
end

#edit_entry(path, prototype = nil) ⇒ Object



215
216
217
218
219
# File 'lib/hx.rb', line 215

def edit_entry(path, prototype=nil)
  path = add_circumfix(path)
  @input.edit_entry(path, prototype) { |text| yield text }
  self
end

#get_entry(path) ⇒ Object



229
230
231
# File 'lib/hx.rb', line 229

def get_entry(path)
  @input.get_entry(add_circumfix(path))
end