Class: Redbreast::Serializer::Base

Inherits:
Object
  • Object
show all
Includes:
ERB::Util
Defined in:
lib/redbreast/serializers/serializer.rb

Overview

Used for initializing a serializer which will save files for respective languages

Direct Known Subclasses

ObjC, Swift, SwiftUI

Instance Attribute Summary collapse

Instance Method Summary collapse

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_namesObject

Returns the value of attribute asset_names.



6
7
8
# File 'lib/redbreast/serializers/serializer.rb', line 6

def asset_names
  @asset_names
end

#bundleObject

Returns the value of attribute bundle.



6
7
8
# File 'lib/redbreast/serializers/serializer.rb', line 6

def bundle
  @bundle
end

Instance Method Details

#saveObject

Raises:

  • (NotImplementedError)


14
15
16
# File 'lib/redbreast/serializers/serializer.rb', line 14

def save(*)
  raise NotImplementedError, 'Abstract Method'
end