Module: Pomodoro::Formats::Review::Plugins::MedicalData

Defined in:
lib/pomodoro/formats/review/plugins/medical_data.rb

Overview

# Medical data

Weight: 69.9 kg
Sun exposure: 2 hours, result: OK.

Today I felt ...

Defined Under Namespace

Classes: MedicalEvent, Parser, Transformer

Class Method Summary collapse

Class Method Details

.parse(string) ⇒ Object


14
15
16
17
18
# File 'lib/pomodoro/formats/review/plugins/medical_data.rb', line 14

def self.parse(string)
  tree = Parser.new.parse(string)
  nodes = Transformer.new.apply(tree)
  nodes.empty? ? Array.new : nodes
end