Class: NamedBase

Inherits:
RubiGen::Base
  • Object
show all
Defined in:
lib/activemessaging/named_base.rb,
lib/activemessaging/named_base.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(runtime_args, runtime_options = {}) ⇒ NamedBase

Returns a new instance of NamedBase.



13
14
15
16
17
18
# File 'lib/activemessaging/named_base.rb', line 13

def initialize(runtime_args, runtime_options={})
  super

  base_name = self.args.first
  assign_names!(base_name)
end

Instance Attribute Details

#class_nameObject (readonly)

Returns the value of attribute class_name.



8
9
10
# File 'lib/activemessaging/named_base.rb', line 8

def class_name
  @class_name
end

#class_nestingObject (readonly)

Returns the value of attribute class_nesting.



9
10
11
# File 'lib/activemessaging/named_base.rb', line 9

def class_nesting
  @class_nesting
end

#class_nesting_depthObject (readonly)

Returns the value of attribute class_nesting_depth.



9
10
11
# File 'lib/activemessaging/named_base.rb', line 9

def class_nesting_depth
  @class_nesting_depth
end

#class_pathObject (readonly)

Returns the value of attribute class_path.



9
10
11
# File 'lib/activemessaging/named_base.rb', line 9

def class_path
  @class_path
end

#file_pathObject (readonly)

Returns the value of attribute file_path.



9
10
11
# File 'lib/activemessaging/named_base.rb', line 9

def file_path
  @file_path
end

#nameObject (readonly)

Returns the value of attribute name.



8
9
10
# File 'lib/activemessaging/named_base.rb', line 8

def name
  @name
end

#plural_nameObject (readonly)

Returns the value of attribute plural_name.



8
9
10
# File 'lib/activemessaging/named_base.rb', line 8

def plural_name
  @plural_name
end

#singular_nameObject (readonly) Also known as: file_name

Returns the value of attribute singular_name.



8
9
10
# File 'lib/activemessaging/named_base.rb', line 8

def singular_name
  @singular_name
end