Class: Redbreast::Serializer::Base
- Inherits:
-
Object
- Object
- Redbreast::Serializer::Base
- Includes:
- ERB::Util
- Defined in:
- lib/redbreast/serializers/serializer.rb
Overview
Used for initializing a serializer which will save files for respective languages
Instance Attribute Summary collapse
-
#asset_names ⇒ Object
Returns the value of attribute asset_names.
-
#bundle ⇒ Object
Returns the value of attribute bundle.
Instance Method Summary collapse
-
#initialize(asset_names, bundle, app_name) ⇒ Base
constructor
A new instance of Base.
- #save ⇒ Object
Constructor Details
#initialize(asset_names, bundle, app_name) ⇒ Base
Returns a new instance of Base.
8 9 10 11 12 |
# File 'lib/redbreast/serializers/serializer.rb', line 8 def initialize(asset_names, bundle, app_name) @asset_names = asset_names @bundle = bundle @app_name = app_name end |
Instance Attribute Details
#asset_names ⇒ Object
Returns the value of attribute asset_names.
6 7 8 |
# File 'lib/redbreast/serializers/serializer.rb', line 6 def asset_names @asset_names end |
#bundle ⇒ Object
Returns the value of attribute bundle.
6 7 8 |
# File 'lib/redbreast/serializers/serializer.rb', line 6 def bundle @bundle end |
Instance Method Details
#save ⇒ Object
14 15 16 |
# File 'lib/redbreast/serializers/serializer.rb', line 14 def save(*) raise NotImplementedError, 'Abstract Method' end |