Class: VimColorScheme::RawNode

Inherits:
Object
  • Object
show all
Defined in:
lib/vimcolorscheme/raw_node.rb

Instance Method Summary collapse

Constructor Details

#initialize(raw) ⇒ RawNode

The raw node gets initialized with a string. This string will later just be printed as-is into the vim file.



5
6
7
# File 'lib/vimcolorscheme/raw_node.rb', line 5

def initialize raw
  @raw = raw
end

Instance Method Details

#to_sObject

Just returns the value that was passed into the constructor of this object.



11
12
13
# File 'lib/vimcolorscheme/raw_node.rb', line 11

def to_s
  @raw + "\n"
end