Class: CodelessCode::Formats::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/codeless_code/formats/base.rb

Overview

Abstract base class for all formats.

Direct Known Subclasses

Plain, Raw, Term

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(raw) ⇒ Base

Returns a new instance of Base.



26
27
28
# File 'lib/codeless_code/formats/base.rb', line 26

def initialize(raw)
  @raw = raw
end

Instance Attribute Details

#rawObject (readonly)

Returns the value of attribute raw.



24
25
26
# File 'lib/codeless_code/formats/base.rb', line 24

def raw
  @raw
end