class SimpleRewriter::Rewriters::Base

Constants

REGISTERED_OPTIONS

Attributes

attr_value[R]

Public Class Methods

new(attr_value, options) click to toggle source
# File lib/simple_rewriter/rewriters/base.rb, line 10
def initialize(attr_value, options)
  @attr_value = attr_value
  @_options = options
end

Public Instance Methods

generate() click to toggle source
# File lib/simple_rewriter/rewriters/base.rb, line 15
def generate
  collect_values_from_options
end

Private Instance Methods

configuration() click to toggle source
# File lib/simple_rewriter/rewriters/base.rb, line 35
def configuration
  SimpleRewriter.configuration
end
options() click to toggle source
# File lib/simple_rewriter/rewriters/base.rb, line 39
def options
  @_options ||= []
end
passed_options() click to toggle source
# File lib/simple_rewriter/rewriters/base.rb, line 27
def passed_options
  options.keys.flatten
end
scoped_options() click to toggle source
# File lib/simple_rewriter/rewriters/base.rb, line 23
def scoped_options
  REGISTERED_OPTIONS
end