Module: FilterRename::ReadableVariables

Defined in:
lib/filter_rename/utils.rb

Overview

Mixin for readable variables.

Instance Method Summary collapse

Instance Method Details

#basic!Object



36
37
38
39
# File 'lib/filter_rename/utils.rb', line 36

def basic!
  @custom = false
  self
end

#custom?Boolean

Returns:



41
42
43
# File 'lib/filter_rename/utils.rb', line 41

def custom?
  @custom == true || @custom.nil?
end

#readonly!Object



45
46
47
48
# File 'lib/filter_rename/utils.rb', line 45

def readonly!
  @writable = false
  self
end

#writable?Boolean

Returns:



50
51
52
# File 'lib/filter_rename/utils.rb', line 50

def writable?
  @writable || @writable.nil?
end