Class: RMark::Setting
- Inherits:
-
Object
- Object
- RMark::Setting
- Includes:
- Singleton
- Defined in:
- lib/r_mark/setting.rb
Instance Attribute Summary collapse
-
#options ⇒ Object
Returns the value of attribute options.
-
#parser ⇒ Object
Returns the value of attribute parser.
Instance Method Summary collapse
-
#initialize ⇒ Setting
constructor
A new instance of Setting.
- #setup {|_self| ... } ⇒ Object
Constructor Details
#initialize ⇒ Setting
Returns a new instance of Setting.
9 10 11 |
# File 'lib/r_mark/setting.rb', line 9 def initialize defaults.each { |k, v| instance_variable_set("@#{k}", v) } end |
Instance Attribute Details
#options ⇒ Object
Returns the value of attribute options.
7 8 9 |
# File 'lib/r_mark/setting.rb', line 7 def @options end |
#parser ⇒ Object
Returns the value of attribute parser.
7 8 9 |
# File 'lib/r_mark/setting.rb', line 7 def parser @parser end |
Instance Method Details
#setup {|_self| ... } ⇒ Object
13 14 15 |
# File 'lib/r_mark/setting.rb', line 13 def setup yield self end |