Class: Gloo::Core::It

Inherits:
Object
  • Object
show all
Defined in:
lib/gloo/core/it.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeIt

Set up the object.



16
17
18
# File 'lib/gloo/core/it.rb', line 16

def initialize
  @value = nil
end

Instance Attribute Details

#valueObject

Returns the value of attribute value.



11
12
13
# File 'lib/gloo/core/it.rb', line 11

def value
  @value
end

Instance Method Details

#is_function?Boolean

Is this a function object?

Returns:

  • (Boolean)


37
38
39
# File 'lib/gloo/core/it.rb', line 37

def is_function?
  return false
end

#set_to(new_value) ⇒ Object

Set the value of it.



23
24
25
# File 'lib/gloo/core/it.rb', line 23

def set_to( new_value )
  @value = new_value
end

#to_sObject

Get the string representation of it.



30
31
32
# File 'lib/gloo/core/it.rb', line 30

def to_s
  return @value.to_s
end