Class: String
- Inherits:
-
Object
- Object
- String
- Defined in:
- lib/jira/mixins.rb
Instance Method Summary collapse
Instance Method Details
#from_json ⇒ Object
38 39 40 |
# File 'lib/jira/mixins.rb', line 38 def from_json JSON.parse(self) rescue {} end |
#periodize ⇒ Object
42 43 44 |
# File 'lib/jira/mixins.rb', line 42 def periodize self.strip[-1] == "." ? self : self + "." end |