Class: Plister::Exporter
- Inherits:
-
Object
- Object
- Plister::Exporter
- Defined in:
- lib/plister/exporter.rb
Instance Attribute Summary collapse
-
#path ⇒ Object
readonly
Returns the value of attribute path.
Instance Method Summary collapse
- #export ⇒ Object
-
#initialize(path = nil) ⇒ Exporter
constructor
A new instance of Exporter.
- #to_s ⇒ Object
Constructor Details
Instance Attribute Details
#path ⇒ Object (readonly)
Returns the value of attribute path.
3 4 5 |
# File 'lib/plister/exporter.rb', line 3 def path @path end |
Instance Method Details
#export ⇒ Object
9 10 11 |
# File 'lib/plister/exporter.rb', line 9 def export File.write path, to_s end |
#to_s ⇒ Object
13 14 15 |
# File 'lib/plister/exporter.rb', line 13 def to_s Psych.dump(preferences) end |