Skip to content

Commit

Permalink
Introduce Flor.pp(o, opts={}) and Flor.pp_to_s
Browse files Browse the repository at this point in the history
  • Loading branch information
jmettraux committed Jan 9, 2024
1 parent 3ad6bdc commit e6b115e
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions lib/flor/core.rb
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,16 @@ def load_procedures(dir)

Dir[dirpath].sort.each { |path| require(path) }
end

def pp(o, opts={})

puts Flor.to_djan(o, { indent: 2, width: true }.merge(opts))
end

def pp_to_s(o, opts={})

Flor.to_djan(o, { indent: 2, width: true }.merge(opts))
end
end
end

0 comments on commit e6b115e

Please sign in to comment.