Class: Spinebox::Generator::View

Inherits:
Object
  • Object
show all
Defined in:
lib/spinebox/generator.rb

Overview

Generates a view

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name) ⇒ View

Returns a new instance of View.



86
87
88
89
# File 'lib/spinebox/generator.rb', line 86

def initialize name
  @name, @source_name = name.camelize, name
  write_source
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



81
82
83
# File 'lib/spinebox/generator.rb', line 81

def name
  @name
end

#sourceObject (readonly)

Returns the value of attribute source.



82
83
84
# File 'lib/spinebox/generator.rb', line 82

def source
  @source
end

#source_nameObject (readonly)

Returns the value of attribute source_name.



83
84
85
# File 'lib/spinebox/generator.rb', line 83

def source_name
  @source_name
end