Class: Tagger::Generator
- Inherits:
-
Object
- Object
- Tagger::Generator
- Defined in:
- lib/tagger/generator.rb
Instance Attribute Summary collapse
-
#events ⇒ Object
Returns the value of attribute events.
-
#platform ⇒ Object
Returns the value of attribute platform.
Instance Method Summary collapse
- #generate(output_location) ⇒ Object
-
#initialize(events, platform) ⇒ Generator
constructor
A new instance of Generator.
Constructor Details
#initialize(events, platform) ⇒ Generator
Returns a new instance of Generator.
5 6 7 8 |
# File 'lib/tagger/generator.rb', line 5 def initialize(events, platform) @events = events @platform = platform end |
Instance Attribute Details
#events ⇒ Object
Returns the value of attribute events.
3 4 5 |
# File 'lib/tagger/generator.rb', line 3 def events @events end |
#platform ⇒ Object
Returns the value of attribute platform.
3 4 5 |
# File 'lib/tagger/generator.rb', line 3 def platform @platform end |
Instance Method Details
#generate(output_location) ⇒ Object
10 11 12 |
# File 'lib/tagger/generator.rb', line 10 def generate(output_location) File.write("#{output_location}/#{output_file_name}", output) end |