Class: Wing::Config

Inherits:
Struct
  • Object
show all
Defined in:
lib/wing.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#authorObject

Returns the value of attribute author

Returns:

  • (Object)

    the current value of author



42
43
44
# File 'lib/wing.rb', line 42

def author
  @author
end

#filesObject

Returns the value of attribute files

Returns:

  • (Object)

    the current value of files



42
43
44
# File 'lib/wing.rb', line 42

def files
  @files
end

#titleObject

Returns the value of attribute title

Returns:

  • (Object)

    the current value of 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