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 = nil) ⇒ Object
if passed nil will use default seed classes.
-
#initialize(from, to = from) ⇒ Exporter
constructor
A new instance of Exporter.
Constructor Details
Instance Attribute Details
#from ⇒ Object
Returns the value of attribute from.
74 75 76 |
# File 'lib/comfortable_mexican_sofa/seeds.rb', line 74 def from @from end |
#path ⇒ Object
Returns the value of attribute path.
74 75 76 |
# File 'lib/comfortable_mexican_sofa/seeds.rb', line 74 def path @path end |
#site ⇒ Object
Returns the value of attribute site.
74 75 76 |
# File 'lib/comfortable_mexican_sofa/seeds.rb', line 74 def site @site end |
#to ⇒ Object
Returns the value of attribute to.
74 75 76 |
# File 'lib/comfortable_mexican_sofa/seeds.rb', line 74 def to @to end |
Instance Method Details
#export!(classes = nil) ⇒ Object
if passed nil will use default seed classes
86 87 88 89 90 91 92 |
# File 'lib/comfortable_mexican_sofa/seeds.rb', line 86 def export!(classes = nil) classes ||= SEED_CLASSES classes.each do |klass| klass = "ComfortableMexicanSofa::Seeds::#{klass}::Exporter" klass.constantize.new(from, to).export! end end |