Class: SublimeSyntaxConvertor::SyntaxYaml

Inherits:
Object
  • Object
show all
Includes:
Formatter
Defined in:
lib/sublime_syntax_convertor/syntax_yaml.rb

Constant Summary collapse

TAB_SIZE =
2

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Formatter

#format_captures, #format_comment, #format_external_syntax, #format_regex, #leading_whitespace, #needs_quoting?, #quote

Constructor Details

#initialize(val) ⇒ SyntaxYaml

Returns a new instance of SyntaxYaml.



9
10
11
# File 'lib/sublime_syntax_convertor/syntax_yaml.rb', line 9

def initialize(val)
  @yaml = to_yaml(val, false, 0)
end

Instance Attribute Details

#yamlObject (readonly)

Returns the value of attribute yaml.



6
7
8
# File 'lib/sublime_syntax_convertor/syntax_yaml.rb', line 6

def yaml
  @yaml
end