Module: Machinery::Scope::ClassMethods

Defined in:
lib/scope.rb

Instance Method Summary collapse

Instance Method Details

#hidden?Boolean

Returns:

  • (Boolean)


66
67
68
# File 'lib/scope.rb', line 66

def hidden?
  @hidden || false
end

#hidden_scopeObject



70
71
72
# File 'lib/scope.rb', line 70

def hidden_scope
  @hidden = true
end

#scope_nameObject



74
75
76
77
# File 'lib/scope.rb', line 74

def scope_name
  scope = name.match(/^Machinery::(.*)Scope$/)[1]
  scope.gsub(/([^A-Z])([A-Z])/, "\\1_\\2").downcase
end