Module: OrgMode::FileInterface

Included in:
File, FileCollection
Defined in:
lib/org_mode.rb

Instance Method Summary collapse

Instance Method Details

#scheduled_nodesObject



51
52
53
# File 'lib/org_mode.rb', line 51

def scheduled_nodes
  nodes.select(&:scheduled?)
end

#select_by_title(pattern, props = {}) ⇒ Object



55
56
57
58
59
60
61
# File 'lib/org_mode.rb', line 55

def select_by_title(pattern, props={})
  result = nodes
  props.each do |k,v|
    result = result.select {|n| n.send(k) == v } 
  end
  result.select {|n| n.title =~ pattern}
end