Class: SqlMunger::FieldSet::Field
- Inherits:
-
Object
- Object
- SqlMunger::FieldSet::Field
- Defined in:
- lib/sql_munger/field_set.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(name) ⇒ Field
constructor
A new instance of Field.
Constructor Details
#initialize(name) ⇒ Field
Returns a new instance of Field.
24 25 26 |
# File 'lib/sql_munger/field_set.rb', line 24 def initialize( name ) @name = name.to_sym end |
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name.
27 28 29 |
# File 'lib/sql_munger/field_set.rb', line 27 def name @name end |
Instance Method Details
#==(other) ⇒ Object
29 30 31 |
# File 'lib/sql_munger/field_set.rb', line 29 def ==( other ) name == other.name end |