Class: ActiveMocker::Generate::MockTemplate
- Inherits:
-
Object
- Object
- ActiveMocker::Generate::MockTemplate
- Defined in:
- lib/active_mocker/generate.rb
Instance Attribute Summary collapse
-
#association_names ⇒ Object
Returns the value of attribute association_names.
-
#associations ⇒ Object
Returns the value of attribute associations.
-
#attribute_names ⇒ Object
Returns the value of attribute attribute_names.
-
#attributes ⇒ Object
Returns the value of attribute attributes.
-
#class_methods ⇒ Object
Returns the value of attribute class_methods.
-
#class_name ⇒ Object
Returns the value of attribute class_name.
-
#collection_associations ⇒ Object
Returns the value of attribute collection_associations.
-
#column_names ⇒ Object
Returns the value of attribute column_names.
-
#default_attributes ⇒ Object
Returns the value of attribute default_attributes.
-
#instance_methods ⇒ Object
Returns the value of attribute instance_methods.
-
#model_class_methods ⇒ Object
Returns the value of attribute model_class_methods.
-
#model_instance_methods ⇒ Object
Returns the value of attribute model_instance_methods.
-
#single_associations ⇒ Object
Returns the value of attribute single_associations.
Instance Method Summary collapse
Instance Attribute Details
#association_names ⇒ Object
Returns the value of attribute association_names.
200 201 202 |
# File 'lib/active_mocker/generate.rb', line 200 def association_names @association_names end |
#associations ⇒ Object
Returns the value of attribute associations.
200 201 202 |
# File 'lib/active_mocker/generate.rb', line 200 def associations @associations end |
#attribute_names ⇒ Object
Returns the value of attribute attribute_names.
200 201 202 |
# File 'lib/active_mocker/generate.rb', line 200 def attribute_names @attribute_names end |
#attributes ⇒ Object
Returns the value of attribute attributes.
200 201 202 |
# File 'lib/active_mocker/generate.rb', line 200 def attributes @attributes end |
#class_methods ⇒ Object
Returns the value of attribute class_methods.
200 201 202 |
# File 'lib/active_mocker/generate.rb', line 200 def class_methods @class_methods end |
#class_name ⇒ Object
Returns the value of attribute class_name.
200 201 202 |
# File 'lib/active_mocker/generate.rb', line 200 def class_name @class_name end |
#collection_associations ⇒ Object
Returns the value of attribute collection_associations.
200 201 202 |
# File 'lib/active_mocker/generate.rb', line 200 def collection_associations @collection_associations end |
#column_names ⇒ Object
Returns the value of attribute column_names.
200 201 202 |
# File 'lib/active_mocker/generate.rb', line 200 def column_names @column_names end |
#default_attributes ⇒ Object
Returns the value of attribute default_attributes.
200 201 202 |
# File 'lib/active_mocker/generate.rb', line 200 def default_attributes @default_attributes end |
#instance_methods ⇒ Object
Returns the value of attribute instance_methods.
200 201 202 |
# File 'lib/active_mocker/generate.rb', line 200 def instance_methods @instance_methods end |
#model_class_methods ⇒ Object
Returns the value of attribute model_class_methods.
200 201 202 |
# File 'lib/active_mocker/generate.rb', line 200 def model_class_methods @model_class_methods end |
#model_instance_methods ⇒ Object
Returns the value of attribute model_instance_methods.
200 201 202 |
# File 'lib/active_mocker/generate.rb', line 200 def model_instance_methods @model_instance_methods end |
#single_associations ⇒ Object
Returns the value of attribute single_associations.
200 201 202 |
# File 'lib/active_mocker/generate.rb', line 200 def single_associations @single_associations end |
Instance Method Details
#render(template) ⇒ Object
214 215 216 |
# File 'lib/active_mocker/generate.rb', line 214 def render(template) ERB.new(template, nil, '-').result(binding) end |