Class: Formaticon::BaseConverter

Inherits:
Object
  • Object
show all
Defined in:
lib/formaticon/base_converter.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(obj) ⇒ BaseConverter

Returns a new instance of BaseConverter.



7
8
9
# File 'lib/formaticon/base_converter.rb', line 7

def initialize(obj)
  @base = obj
end

Instance Attribute Details

#baseObject (readonly)

Returns the value of attribute base.



5
6
7
# File 'lib/formaticon/base_converter.rb', line 5

def base
  @base
end

Instance Method Details

#from_rubyObject

Raises:

  • (NotImplementedError)


11
12
13
# File 'lib/formaticon/base_converter.rb', line 11

def from_ruby
  raise NotImplementedError.new
end

#to_rubyObject

Raises:

  • (NotImplementedError)


15
16
17
# File 'lib/formaticon/base_converter.rb', line 15

def to_ruby
  raise NotImplementedError.new
end