Class: SublimeDSL::SublimeText::SettingSet::Setting
- Inherits:
-
Object
- Object
- SublimeDSL::SublimeText::SettingSet::Setting
- Defined in:
- lib/sublime_dsl/sublime_text/setting_set.rb
Instance Attribute Summary collapse
-
#key ⇒ Object
readonly
Returns the value of attribute key.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(key, value) ⇒ Setting
constructor
A new instance of Setting.
- #to_dsl ⇒ Object
Constructor Details
#initialize(key, value) ⇒ Setting
Returns a new instance of Setting.
51 52 53 54 |
# File 'lib/sublime_dsl/sublime_text/setting_set.rb', line 51 def initialize(key, value) @key = key @value = value end |
Instance Attribute Details
#key ⇒ Object (readonly)
Returns the value of attribute key.
49 50 51 |
# File 'lib/sublime_dsl/sublime_text/setting_set.rb', line 49 def key @key end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
49 50 51 |
# File 'lib/sublime_dsl/sublime_text/setting_set.rb', line 49 def value @value end |
Instance Method Details
#to_dsl ⇒ Object
56 57 58 |
# File 'lib/sublime_dsl/sublime_text/setting_set.rb', line 56 def to_dsl "#{key} #{display(value)}" end |