class Cog::Generator::LanguageMethods::Scope
Defines a program scope
Attributes
name[R]
@return [String, nil] name of the scope
type[R]
@return [Symbol] type of the scope. For example, :include_guard
Public Class Methods
new(type, name=nil)
click to toggle source
@param type [String] type of the scope @param name [String] name of the scope
# File lib/cog/generator/language_methods/scope.rb, line 16 def initialize(type, name=nil) @type = type.to_sym @name = name end