Class: OmniFocus::Thingy
Instance Attribute Summary collapse
Instance Method Summary
collapse
Constructor Details
#initialize(of, thing) ⇒ Thingy
Returns a new instance of Thingy.
789
790
791
792
|
# File 'lib/omnifocus.rb', line 789
def initialize of, thing
@omnifocus = of
@thing = thing
end
|
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(m, *a) ⇒ Object
798
799
800
801
|
# File 'lib/omnifocus.rb', line 798
def method_missing m, *a
warn "%s#method_missing(%s)" % [self.class.name, [m,*a].inspect[1..-2]]
thing.send m, *a
end
|
Instance Attribute Details
#omnifocus ⇒ Object
Returns the value of attribute omnifocus.
788
789
790
|
# File 'lib/omnifocus.rb', line 788
def omnifocus
@omnifocus
end
|
Returns the value of attribute thing.
788
789
790
|
# File 'lib/omnifocus.rb', line 788
def thing
@thing
end
|
Instance Method Details
794
795
796
|
# File 'lib/omnifocus.rb', line 794
def active
its.completed.eq(false)
end
|
807
808
809
|
# File 'lib/omnifocus.rb', line 807
def id
thing.id_.get
end
|
811
812
813
|
# File 'lib/omnifocus.rb', line 811
def inspect
"#{self.class}[#{self.id}]"
end
|
803
804
805
|
# File 'lib/omnifocus.rb', line 803
def name
thing.name.get
end
|