Class: Hx::StripPath
Instance Method Summary collapse
- #each_entry_path(selector) ⇒ Object
- #edit_entry(path, prototype = nil) ⇒ Object
- #get_entry(path) ⇒ Object
Methods included from CircumfixPath
Methods included from Filter
Methods included from View
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 |