Class: SublimeSyntaxConvertor::SyntaxYaml
- Inherits:
-
Object
- Object
- SublimeSyntaxConvertor::SyntaxYaml
- Includes:
- Formatter
- Defined in:
- lib/sublime_syntax_convertor/syntax_yaml.rb
Constant Summary collapse
- TAB_SIZE =
2
Instance Attribute Summary collapse
-
#yaml ⇒ Object
readonly
Returns the value of attribute yaml.
Instance Method Summary collapse
-
#initialize(val) ⇒ SyntaxYaml
constructor
A new instance of SyntaxYaml.
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
#yaml ⇒ Object (readonly)
Returns the value of attribute yaml.
6 7 8 |
# File 'lib/sublime_syntax_convertor/syntax_yaml.rb', line 6 def yaml @yaml end |