Class: RMark::Setting

Inherits:
Object
  • Object
show all
Includes:
Singleton
Defined in:
lib/r_mark/setting.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeSetting

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

#optionsObject

Returns the value of attribute options.



7
8
9
# File 'lib/r_mark/setting.rb', line 7

def options
  @options
end

#parserObject

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

Yields:

  • (_self)

Yield Parameters:



13
14
15
# File 'lib/r_mark/setting.rb', line 13

def setup
  yield self
end