class Raconteur
Constants
- ATTRS
- DEFAULTS
- ORIGINAL_DEFAULTS
- VERSION
Public Class Methods
new(customizations={})
click to toggle source
Bootstrap attributes
# File lib/raconteur.rb, line 13 def initialize(customizations={}) @data = Marshal.load(Marshal.dump(DEFAULTS)) @raconteur = self end
Public Instance Methods
inspect()
click to toggle source
Prettier print
# File lib/raconteur.rb, line 24 def inspect "#<Raconteur:0x#{object_id} #{ATTRS.map { |att| "@#{att}=#{send(att).inspect}" }.join(', ')}>" end
parse(text="", scope=nil)
click to toggle source
Parse
the inputted text with the registered processors
# File lib/raconteur.rb, line 19 def parse(text="", scope=nil) Raconteur::Parse.scoped self, text, scope end
processors()
click to toggle source
# File lib/raconteur.rb, line 32 def processors Raconteur::Processor.scoped self end
settings()
click to toggle source
Accessing settings and processors
# File lib/raconteur.rb, line 29 def settings Raconteur::Setting.scoped self end
Private Instance Methods
data()
click to toggle source
# File lib/raconteur.rb, line 39 def data @data end