Class: Towsta::Kinds::IntegerKind

Inherits:
MainKind
  • Object
show all
Defined in:
lib/towsta/kinds/integer.rb

Instance Attribute Summary

Attributes inherited from MainKind

#content

Instance Method Summary collapse

Methods inherited from MainKind

#compare_parameterized, #export, #get, #initialize, #kind

Constructor Details

This class inherits a constructor from Towsta::Kinds::MainKind

Instance Method Details

#compare(object) ⇒ Object



10
11
12
# File 'lib/towsta/kinds/integer.rb', line 10

def compare object
  self.get == object.to_i
end

#set(content) ⇒ Object



6
7
8
# File 'lib/towsta/kinds/integer.rb', line 6

def set content
  @content = content.to_i
end