Class: ImportStatement
- Defined in:
- lib/steamd/nodes/import_statement_node.rb
Overview
Represents an import statement
ie: #import “test.steamd”
Instance Method Summary collapse
-
#filename_no_ext ⇒ String
The name not including the extension of the import file.
-
#name ⇒ String
The full name including the extension of the import file.
-
#to_hash ⇒ Hash
The hash representation.
Instance Method Details
#filename_no_ext ⇒ String
The name not including the extension of the import file
16 17 18 |
# File 'lib/steamd/nodes/import_statement_node.rb', line 16 def filename_no_ext File.basename(name, '.*') end |
#name ⇒ String
The full name including the extension of the import file
9 10 11 |
# File 'lib/steamd/nodes/import_statement_node.rb', line 9 def name filename.text_value end |
#to_hash ⇒ Hash
The hash representation
23 24 25 |
# File 'lib/steamd/nodes/import_statement_node.rb', line 23 def to_hash { filename: filename_no_ext } end |