Class: MarkdownExpander::Expander::RenderResult

Inherits:
Object
  • Object
show all
Defined in:
lib/markdown-expander.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(body, errors) ⇒ RenderResult

Returns a new instance of RenderResult.



116
117
118
119
# File 'lib/markdown-expander.rb', line 116

def initialize body, errors
  @body = body
  @errors = errors
end

Instance Attribute Details

#bodyObject (readonly)

Returns the value of attribute body.



114
115
116
# File 'lib/markdown-expander.rb', line 114

def body
  @body
end

#errorsObject (readonly)

Returns the value of attribute errors.



115
116
117
# File 'lib/markdown-expander.rb', line 115

def errors
  @errors
end