Class: Squib::DSL::Yaml
- Inherits:
-
Object
- Object
- Squib::DSL::Yaml
- Includes:
- WarnUnexpectedParams
- Defined in:
- lib/squib/dsl/yaml.rb
Instance Attribute Summary collapse
- #block ⇒ Object readonly
- #dsl_method ⇒ Object readonly
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(dsl_method) ⇒ Yaml
constructor
A new instance of Yaml.
- #run(opts, &block) ⇒ Object
Methods included from WarnUnexpectedParams
Constructor Details
#initialize(dsl_method) ⇒ Yaml
Returns a new instance of Yaml.
24 25 26 |
# File 'lib/squib/dsl/yaml.rb', line 24 def initialize(dsl_method) @dsl_method = dsl_method end |
Instance Attribute Details
#block ⇒ Object (readonly)
22 23 24 |
# File 'lib/squib/dsl/yaml.rb', line 22 def block @block end |
#dsl_method ⇒ Object (readonly)
22 23 24 |
# File 'lib/squib/dsl/yaml.rb', line 22 def dsl_method @dsl_method end |
Class Method Details
.accepted_params ⇒ Object
28 29 30 |
# File 'lib/squib/dsl/yaml.rb', line 28 def self.accepted_params i( file data explode ) end |
Instance Method Details
#run(opts, &block) ⇒ Object
32 33 34 35 36 37 |
# File 'lib/squib/dsl/yaml.rb', line 32 def run(opts,&block) warn_if_unexpected opts import_args = Args.extract_import opts importer = Squib::Import::YamlImporter.new importer.import_to_dataframe(import_args, &block) end |