Class: ComfortableMexicanSofa::Seeds::Exporter
- Inherits:
-
Object
- Object
- ComfortableMexicanSofa::Seeds::Exporter
- Defined in:
- lib/comfortable_mexican_sofa/seeds.rb
Direct Known Subclasses
File::Exporter, Layout::Exporter, Page::Exporter, Snippet::Exporter
Instance Attribute Summary collapse
-
#from ⇒ Object
Returns the value of attribute from.
-
#path ⇒ Object
Returns the value of attribute path.
-
#site ⇒ Object
Returns the value of attribute site.
-
#to ⇒ Object
Returns the value of attribute to.
Instance Method Summary collapse
- #export!(classes = SEED_CLASSES) ⇒ Object
-
#initialize(from, to = from) ⇒ Exporter
constructor
A new instance of Exporter.
Constructor Details
Instance Attribute Details
#from ⇒ Object
Returns the value of attribute from.
72 73 74 |
# File 'lib/comfortable_mexican_sofa/seeds.rb', line 72 def from @from end |
#path ⇒ Object
Returns the value of attribute path.
72 73 74 |
# File 'lib/comfortable_mexican_sofa/seeds.rb', line 72 def path @path end |
#site ⇒ Object
Returns the value of attribute site.
72 73 74 |
# File 'lib/comfortable_mexican_sofa/seeds.rb', line 72 def site @site end |
#to ⇒ Object
Returns the value of attribute to.
72 73 74 |
# File 'lib/comfortable_mexican_sofa/seeds.rb', line 72 def to @to end |
Instance Method Details
#export!(classes = SEED_CLASSES) ⇒ Object
83 84 85 86 87 88 |
# File 'lib/comfortable_mexican_sofa/seeds.rb', line 83 def export!(classes = SEED_CLASSES) classes.each do |klass| klass = "ComfortableMexicanSofa::Seeds::#{klass}::Exporter" klass.constantize.new(from, to).export! end end |