Class: Wing::Config
- Inherits:
-
Struct
- Object
- Struct
- Wing::Config
- Defined in:
- lib/wing.rb
Instance Attribute Summary collapse
-
#author ⇒ Object
Returns the value of attribute author.
-
#files ⇒ Object
Returns the value of attribute files.
-
#title ⇒ Object
Returns the value of attribute title.
Class Method Summary collapse
Instance Attribute Details
#author ⇒ Object
Returns the value of attribute author
42 43 44 |
# File 'lib/wing.rb', line 42 def @author end |
#files ⇒ Object
Returns the value of attribute files
42 43 44 |
# File 'lib/wing.rb', line 42 def files @files end |
#title ⇒ Object
Returns the value of attribute title
42 43 44 |
# File 'lib/wing.rb', line 42 def title @title end |
Class Method Details
.load(content) ⇒ Object
43 44 45 46 47 48 49 50 |
# File 'lib/wing.rb', line 43 def self.load(content) data = YAML.load(content) new( data["title"], data["author"], data["files"] ) end |