Class: GwtRpc::Gxt::SortDir
- Inherits:
-
Object
- Object
- GwtRpc::Gxt::SortDir
- Defined in:
- lib/gwt_rpc/gxt/sort_dir.rb
Instance Attribute Summary collapse
-
#direction ⇒ Object
readonly
Returns the value of attribute direction.
Class Method Summary collapse
Instance Method Summary collapse
- #eql?(o) ⇒ Boolean
-
#initialize(direction) ⇒ SortDir
constructor
A new instance of SortDir.
Constructor Details
#initialize(direction) ⇒ SortDir
Returns a new instance of SortDir.
4 5 6 |
# File 'lib/gwt_rpc/gxt/sort_dir.rb', line 4 def initialize(direction) @direction = direction end |
Instance Attribute Details
#direction ⇒ Object (readonly)
Returns the value of attribute direction.
2 3 4 |
# File 'lib/gwt_rpc/gxt/sort_dir.rb', line 2 def direction @direction end |
Class Method Details
.gwt_deserialize(reader) ⇒ Object
8 9 10 |
# File 'lib/gwt_rpc/gxt/sort_dir.rb', line 8 def self.gwt_deserialize(reader) new(reader.read_int) end |
Instance Method Details
#eql?(o) ⇒ Boolean
12 13 14 |
# File 'lib/gwt_rpc/gxt/sort_dir.rb', line 12 def eql?(o) o.direction == direction end |