Class: Formaticon::BaseConverter
- Inherits:
-
Object
- Object
- Formaticon::BaseConverter
- Defined in:
- lib/formaticon/base_converter.rb
Direct Known Subclasses
Converters::Erlang::Converter, Converters::Ini::Converter, Converters::Xml::Converter
Instance Attribute Summary collapse
-
#base ⇒ Object
readonly
Returns the value of attribute base.
Instance Method Summary collapse
- #from_ruby ⇒ Object
-
#initialize(obj) ⇒ BaseConverter
constructor
A new instance of BaseConverter.
- #to_ruby ⇒ Object
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
#base ⇒ Object (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_ruby ⇒ Object
11 12 13 |
# File 'lib/formaticon/base_converter.rb', line 11 def from_ruby raise NotImplementedError.new end |
#to_ruby ⇒ Object
15 16 17 |
# File 'lib/formaticon/base_converter.rb', line 15 def to_ruby raise NotImplementedError.new end |