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


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

def initialize(raw)
  @raw = raw
end

Instance Attribute Details

#rawObject (readonly)

Returns the value of attribute raw


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

def raw
  @raw
end